resque icon indicating copy to clipboard operation
resque copied to clipboard

Windows USR signals

Open hackhowtofaq opened this issue 7 years ago • 1 comments
trafficstars

Since the following signals are not available on Windows

USR1 - Immediately kill child but don't exit USR2 - Don't start to process any new jobs

is there any other way to control a worker (stop/start processing jobs)?

Shall we use different SIGNALS available on Windows only for this job?

I will appreciate any help.

hackhowtofaq avatar Jun 21 '18 12:06 hackhowtofaq

You can register new signals by yourself in those cases. You can loop thought all the workers and register the new signals handler using the correct methods. If you have recommendation of signals that we can use in windows we are also open to a PR.

rafaelfranca avatar Jun 29 '18 10:06 rafaelfranca