tobymao / saq

Simple Async Queues
https://saq-py.readthedocs.io/en/latest/
MIT License
577 stars 39 forks source link

Windows Support #117

Closed lunden23 closed 7 months ago

lunden23 commented 7 months ago

Hi, the methods

loop.add_signal_handler() loop.remove_signal_handler()

are not supported on Windows per the asyncio documentation (see here: https://docs.python.org/3/library/asyncio-platforms.html#asyncio-windows-subprocess). For Celery it is possible to circumvent this by installing the gevent package and setting the "--pool=gevent" argument for the worker process.

I was wondering if it is possible to implement a similar argument for the SAQ settings or if that is out of scope? Thanks.

tobymao commented 7 months ago

windows was already supported

SIGNALS = [signal.SIGINT, signal.SIGTERM] if os.name != "nt" else [signal.SIGTERM]

did something here change?

tobymao commented 7 months ago

closing this as out of scope for now