Azure-Samples / azure-batch-samples

Azure Batch and HPC Code Samples
Other
261 stars 487 forks source link

OnAllTasksComplete.TerminateJob inconsistent #319

Open BC89 opened 1 year ago

BC89 commented 1 year ago

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