'How to restart Dramatiq in Windows on code update or server restart?
I am using Django-Dramatiq with Dramatiq and RabbitMQ. I have it all working, but I am not sure the proper way to deploy to a Windows Server. If the server restarts, how do I make sure that the workers start again? If I deploy new code changes, what is the best way to stop and start the workers again to get the changes?
Solution 1:[1]
See https://github.com/winsw/winsw
It can manage and monitor windows processes for you which you can use to auto restart workers, rabbit, your app etc. For code changes you need to tell it to restart the processes manually.
winsw restart [<path-to-config>] [--no-elevate]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | MarkoBox |