Update Cron
The following SDK can be used to update a particular cron’s details. You can use this SDK to update the name, description and target. You can select your required cron by passing the cron id to the getCron() method, and update the details using the updateCron() method.
Note: You can use this method to update details of both Pre-Defined Crons and Dynamic Crons.
copyconst cron = await jobScheduling.CRON.getCron('test_cron'); // get cron cron.cron_name = 'test'; const updatedCronDetailsWithName = await jobScheduling.CRON.updateCron('test_cron', cron); // update cron details with cron name updatedCronDetailsWithName.cron_name = 'test_new'; const updatedCronDetailsWithId = await jobScheduling.CRON.updateCron('1234567890', updatedCronDetailsWithName); // update cron details with cron id
Last Updated 2025-06-20 16:21:48 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit