Batch icon indicating copy to clipboard operation
Batch copied to clipboard

Add "deletejob" to OnAllTasksComplete event

Open letmaik opened this issue 7 years ago • 1 comments

I often encounter the scenario that by the time a job completes I already gathered all job output and don't need to inspect the Batch job anymore. Still, I need to have some code somewhere that then finally deletes the job so that I don't accumulate jobs possibly hitting some quota at some point. For simple workflows it would be great if this step could be removed by adding a "deletejob" option to the OnAllTasksComplete event.

letmaik avatar Jul 16 '18 08:07 letmaik

terminateJob is sufficient for moving the job from its source state to Completed. Completed jobs do not count towards active job/job schedule quota.

That being said, deleteJob is something that could be useful for certain scenarios and, in particular, node hygiene for cases where task constraint retention time doesn't make sense.

alfpark avatar Jul 16 '18 15:07 alfpark