patchable for periodic_job_scheduler