dkron icon indicating copy to clipboard operation
dkron copied to clipboard

Stop hung process

Open ldapomni opened this issue 3 years ago • 6 comments

How to kill a hung process running from shell? Add kill function?

ldapomni avatar Jun 20 '21 09:06 ldapomni

You're a bit stingy with information, so it's not quite clear if this is a support request or a feature request. A few thoughts: - The shell executor was recently fitted with a timeout setting that kills the shell job when the timeout is reached. - It is possible to kill the process on the command line, if you have access to the server. - It is always better to fix the problematic process than to resort to killing it. It would be helpful if you can elaborate on your issue.

yvanoers avatar Jun 21 '21 19:06 yvanoers

For example, there are many different processes that deal with calculations and some may hang. You need to remove them without access to the server. It will finish on the kill -9 signal. Timeout is not suitable, as processes can last for different times

ldapomni avatar Jun 22 '21 04:06 ldapomni

I am using the timeout setting. But would be great to force a kill as well.

Zub4ir avatar Jun 22 '21 13:06 Zub4ir

A feature request, then. Worth adding, I think, though maybe tricky to do this consistently for all executors. @victorcoder WDYT?

yvanoers avatar Jun 23 '21 21:06 yvanoers

Any word on this @victorcoder? It would be an amazing feature to see a kill button next to the running job in the busy tab of the web ui

Zub4ir avatar Jun 30 '21 07:06 Zub4ir

This has been requested before but now I can not find the issue #

You are right @yvanoers, it should have a custom implementation for each executor, but it should be possible.

Adding this to the roadmap

vcastellm avatar Jun 30 '21 11:06 vcastellm