mojolicious/minion

[Feature request] allow signals to be sent to workers as well

Opened this issue · 5 comments

In the new minion version, there's this nice button to send signals to jobs.

My request is to have the exactly same button on the workers subpage. E.g. for gracefully stopping a worker by sending it an INT signal.

kraih commented

What are the use cases?

any kind of code/db maintenance

kraih commented

That tells me very little, please elaborate.

an active server needs to be taken down for scheduled maintenance. There are still N jobs in a queue to be processed. Graceful worker shutdown ensures database integrity. Actually, not a big deal, i am doing this from the command line, just thought a Minion button would be more convenient.

kraih commented

I can't really think of a scenario where i would want to send a signal to the worker from the ui. For maintenance tasks i would have a shell open on the machine anyway, and then just deal with it via systemctl directly. 🤔