Reputation: 4735
I've made a mistake in pipeline configuration and a job task is now stuck, waiting for a console input in a MS hosted ubuntu agent.
I don't care about the pipeline finishing so I canceled the pipeline but the job is still running, doing nothing, wasting number of running agents in the agent pool.
Is there a way to force cancel or shutdown the pipeline running in a hosted agent in Azure DevOps pipelines?
Upvotes: 0
Views: 10870
Reputation: 8298
As a workaround, we could set the job cancel time value to configure the cancel time, such as set the field value to 1.
Result:
If the job continues to run after we cancel the build, it will automatically cancel after one minute.
Check the pic below.
Upvotes: 1