core/job_queue: validate duration before adding to queue