Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not terminate running tasks

See original GitHub issue

Problem 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


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:closed
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

hieuhccommented, Sep 4, 2019

Hi. I confirm the newest fix has resolved the issue. Much appreciated for helping.

alfparkcommented, Aug 30, 2019

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 the develop branch or using the develop-cli Docker image once the DevOps build completes.

Note that if you’re moving from 3.7.1 to develop, you’ll need to upgrade (if not using the CLI Docker image):

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found