Discard machine if task fails?

When using batch -- is there a way to discard a machine permanently if a task fails? E.g, tell Google Cloud batch that I don't want anymore tasks to run on that machine?

2 1 74
1 REPLY 1

Hi, is this for the task retry case(taskSpec.maxRetryCount is set to non-zero)? Because if you didn't set the retry and a task fails, the whole job will fail.

Assuming this is task retry case, currently, there is no direct support on this. Batch will only recreate a VM when the VM is not responding to the Batch server. As long as the VM is responding, even the first task execution fails, there is still possibility the next execution is assigned to the same VM.