Azure batch jobs stuck deleting/terminating

Kermad, Kareem 1 Reputation point


I have two jobs that have been stuck. One is stuck deleting and the other is stuck terminating. They have been like this for almost 24 hours now. The corresponding pools both say that they are deleting, but there are no nodes in either of them. How can I force delete the jobs?

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
295 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 20,856 Reputation points

    Hello @KermadKareem-048,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    There seems to be issues in the system that preventing the update of the task state from propagating. However, in general situations like this if we observe the node state where the task ran, it will return to idle (assuming no other tasks are scheduled to it or are currently running).

    If you would like to force delete it, you can use "Remove-AzureBatchJob" PowerShell command. The Remove-AzureBatchJob cmdlet deletes an Azure Batch job. This cmdlet prompts you for confirmation before it removes a job, unless you specify the Force parameter

    Example: Remove-AzureBatchJob -Id "Job-000001" -BatchContext $Context

    For details, you can refer to the following link

    Hope this helps!

    --please don't forget to upvote and accept as answer if the reply is helpful--

    0 comments No comments