justanhduc / task-spooler

A scheduler for GPU/CPU tasks
https://justanhduc.github.io/2021/02/03/Task-Spooler.html
GNU General Public License v2.0
273 stars 24 forks source link

Timeout #46

Open dgutson opened 1 year ago

dgutson commented 1 year ago

I suggest to add the ability to set a timeout for running tasks, killing them on expiration.

justanhduc commented 1 year ago

Hi @dgutson. Yes it will be a good feature to add. I will come up with an implementation soon.

dgutson commented 1 year ago

Thanks, sometimes tasks hang occupying a slot this turning the whole process slower, not only CPU usage. If I set task -S 4 but 3 hang overnight, I end up having no parallelism and a night or weekend is lost. This is a real use case.

justanhduc commented 1 year ago

Yeah I myself did need this feature just a few weeks ago. I needed to restart ffmpeg recording regularly to prevent it from freezing, but at that time I had to make do with some hack in bash script.