pipelines icon indicating copy to clipboard operation
pipelines copied to clipboard

Need a way to terminate the stuck task

Open xavierchow opened this issue 9 years ago • 2 comments

Sometimes the task keeps running for a long time and gets stuck, need a way to stop it.

xavierchow avatar Dec 09 '16 06:12 xavierchow

First step would be to add timeout to bash_executor.py.

There is _timeout in the sh package that we use to run the commands: https://amoffat.github.io/sh/sections/special_arguments.html?highlight=timeout#timeout

@zbal looks ok to you? Ok to send SIGKILL on timeout?

We should also add timeout handling on all the other executors.

Other option is to set up timeout on pipeline execution level, would require to run the execution in a thread and then attempt to kill it after the timeout from the main thread.

JuhaS avatar Mar 09 '17 04:03 JuhaS

I implemented the _timeout and set it to 1 hour for bash tasks. This is at least a partial solution for this issue.

JuhaS avatar Jun 20 '17 02:06 JuhaS