Can not terminate running tasks
See original GitHub issueProblem Description
I can not terminate running tasks in a job with jobs tasks term
. The command hangs for long time if I use --wait
. When I terminate the task using Azure Portal, it is marked with Completed
state, but when I log in to the node I can see the container is still running.
Batch Shipyard Version
3.7.1
Steps to Reproduce
- Submit a long running task.
- Try to terminate the task with command
jobs tasks term
.
Expected Results
The task is terminated with Completed
state. There is no Docker container running when logging into the node.
Actual Results
Can not terminate using the command.
Additonal Comments
I wonder what should be expected when I specify max_task_retries
being -1. To be able to terminate this kind of task, I had to manually terminate in Azure Portal, then log in to the node and docker rm -f
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Force close a Program which Task Manager cannot terminate
If you open the Task Manager, right-click on the process and select End task, the process should close. If it does not, go...
Read more >How to force close a Program which Task Manager cannot ...
Solution 1] Use ALT + F4 · Solution 2] Using Command Prompt · Solution 3] Forcefully shut-down or restart the system ...
Read more >FIX: Windows 10/11 won't end task in Task Manager
Find the program you want to force quit and Task Manager will direct you to its process under Processes tab in the Name...
Read more >How to force close a Program which Task Manager ... - YouTube
In this post, we will see how to force close a program, even when the program won' t close with Task Manager. To...
Read more >How To Stop Running Tasks in the ProcessPoolExecutor ...
If your task has already started running, then calling cancel() will have no effect and you must wait for the task to complete....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi. I confirm the newest fix has resolved the issue. Much appreciated for helping.
Thanks for confirming - this is most likely a regression. I have a fix that should be landing shortly in
develop
. You can test either by pulling thedevelop
branch or using thedevelop-cli
Docker image once the DevOps build completes.Note that if you’re moving from
3.7.1
todevelop
, you’ll need to upgrade (if not using the CLI Docker image): https://github.com/Azure/batch-shipyard/blob/master/docs/01-batch-shipyard-installation.md#upgrading-to-new-releases