azure-batch-samples icon indicating copy to clipboard operation
azure-batch-samples copied to clipboard

OnAllTasksComplete.TerminateJob inconsistent

Open BC89 opened this issue 2 years ago • 0 comments

Greetings,

Trying to get OnAllTasksComplete.TerminateJob to work in a consistent manner. I'm following the recommendation of job refresh and then updating to OnAllTasksComplete.TerminateJob from it's initial DoNothing. Using .Net SDK, w/ .Net 7 Core. What I've observed is that some jobs terminate when state == complete but the majority do not.

This same recommendation is buried in a MS documentation as well: https://stackoverflow.com/questions/49488207/how-to-use-azure-batch-in-an-event-based-design-and-terminate-cleanup-finished-j

Thanks, -BC

BC89 avatar Mar 06 '23 14:03 BC89