Pause Cron
This SDK method can be used to temporarily halt a cron from submitting a job to the job Pool. You need to pass the cron id or name of the cron you wish to pause to the pauseCron() SDK method.
Note: You can use this method to update details of both Pre-Defined Crons and Dynamic Crons.
Ensure the following packages have been imported:
copyimport com.zc.component.jobscheduling.beans.cron.ZCCronDetails;
copyZCCronDetails pausedCronA = jobScheduling.cron.pauseCron(123456789l); // pause cron with corn id ZCCronDetails pausedCronB = jobScheduling.cron.pauseCron("test_cron"); // pause cron with cron name
Last Updated 2025-06-20 16:21:48 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit