Bogdanp / django_dramatiq

A Django app that integrates with Dramatiq.
https://dramatiq.io
Other
331 stars 77 forks source link

Running as a Background service in windows server #119

Closed swintaboi closed 2 years ago

swintaboi commented 2 years ago

I'm trying to run django with IIS and checking background jobs management with Dramatiq. I've tried a nohup style powershell command to run rundramatiq in background but process gets terminated when my user logs off. Is there a service like background running feature that we can leverage or any recommendations for deployment ?

The powershell command that I'm using:

$job = start-job {
cd <django_folder_path> ;
.\.venv\Scripts\activate.ps1;
 & .\.venv\Scripts\python.exe .\manage.py rundramatiq --processes 1 --threads 2
}
swintaboi commented 2 years ago

I've started using NSSM and it's working fine as of now