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.
    
copy
const pausedCronWithName = await jobScheduling.CRON.pauseCron('test_cron'); // pause cron with cron name const pausedCronWithId = await jobScheduling.CRON.pauseCron('1234567890'); // pause cron with cron Id

Last Updated 2025-06-20 16:21:48 +0530 +0530