page not found for example.com/custom-post-name

this worked for me

'has_archive'=> true,

replace it with

'has_archive'=> 'jobs',

then flushed the permalinks