A disabled persistent schedule (executing custom script) is enabled multiple times via "openidm/config/scheduler/name_of_scheduler" endpoint by the request below (twice in our case) then the custom script is executed multiple times (twice in our case) and the runs are overlapping.
If "scheduler/job/name_of_scheduler" endpoint is used to enable the scheduler it works as expected - that is the custom script is run only once at a time. The scheduler has concurrentExecution set to false and misfirePolicy is fireAndProceed.
Steps to reproduce
- deploy openidm 6.0.0
- add attached scheduler to conf folder
- enable this scheduler two times with this command
- check idm log with this command
As we can see in the log, there are two instances of the same script but it should be run only once because the first script hasn't stopped yet.