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 get() method, and update the details using the update() method.
cron = job_scheduling.CRON.get(’test’) # get cron with cron name
cron.__setitem__(‘cron_name’, ’test_new_name’) # set cron name
updated_cron = job_scheduling.CRON.update(‘1234567890’, cron) # updating cron name with cron Id
cron = job_scheduling.CRON.get(’test’) # get cron with cron name
cron.__setitem__(‘cron_name’, ’test_name’) # set cron name
updated_cron = job_scheduling.CRON.update(’test’, cron) # updating cron name with the existing cron name
Last Updated 2025-06-20 16:21:48 +0530 IST
Yes
No
Send your feedback to us