- I can suspend/activate a batch using the Java API
- I can suspend/activate a batch using the REST API
If a batch is running with a loot of jobs. So the seed jobs is still generating new execution jobs and the job executor acquires existing execution jobs. The delete batch command will try to delete all of this in one transaction and will very likely fail with an optimistic locking exceptions. Which means the batch cannot be deleted before completion.
Suspend seed job definition and let the job executor process the remaining execution jobs.