-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
SIGHUP is not present on Windows, so the crontask management command crashes with AttributeError: module 'signal' has no attribute 'SIGHUP'.
If I change these lines in crontask.py:
def launch_scheduler(self, lock, scheduler):
signal.signal(signal.SIGHUP, kill_softly)
To this:
def launch_scheduler(self, lock, scheduler):
if hasattr(signal, "SIGHUP"):
signal.signal(signal.SIGHUP, kill_softly)
Then it works on Windows, and CTRL-C sends SIGINT and stops the worker as expected.
Reactions are currently unavailable
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working