Description
Scenario would be a long-running job that is taking too long and the user wishes to kill it and not have it restarted.
If I were to send the TERM signal to the supervisor pid, I've noticed it has this weird side effect of restarting everything (not just solid_queue) in my procfile (when using foreman).
I also noticed if I were send a TERM signal to the worker (assuming it was a 1 thread/1 process worker), then the worker would get restarted and pick up the same job again.
I suppose it's possible to modify the Job in the solid_queue_jobs table such that its finished_at is set then send the TERM signal to the worker but that seems hack-ish.
Also, what if the worker has 5 threads and they're all processing jobs that I don't want to kill?
Would appreciate some direction on this, thanks!