I am working on a Django project which has been deployed on a Windows server using Apache (WAMP). I have integrated Huey with the Django application to run some asynchronous tasks. I am running the consumer using the
python manage.py run_huey
command. Is there any way to run this command as a service in the background?
You can put the Python command in a bat file, and use the Windows Scheduler to run the batch file automatically.
python PATH_TO_YOUR_DJANGO_PROJECT/manage.py run_huey --settings=YOUR_PROD.settings