mojolicious / minion

:octopus: Perl high performance job queue
https://metacpan.org/release/Minion
Artistic License 2.0
224 stars 56 forks source link

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

Open ghost opened 2 years ago

ghost commented 2 years ago

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 2 years ago

What are the use cases?

ghost commented 2 years ago

any kind of code/db maintenance

kraih commented 2 years ago

That tells me very little, please elaborate.

ghost commented 2 years ago

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 2 years ago

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. 🤔