Open kimsagro1 opened 3 years ago
We have the same issue working on Azure Devops backup MVP - we have scheduled backup jobs which the user can then change. Is it better to change state? We're really in testing at the moment but when we go live will be good to know.
@odinserj Are you able to confirm?
To reschedule scheduled jobs I am currently deleting the previous job and then scheduling a new one within a transaction so if the schedule fails it rolls back the delete:
This involves storing the original arguments somewhere so I can reschedule with the original arguments.
I was wondering whether there was any ramifications to doing the following instead:
This way there is no need to keep the original job arguments around and also is transactional.
Thoughts?