Running a celery worker as a windows service

202 views
Skip to first unread message

Mohammed Noor

unread,
Jun 21, 2018, 3:50:03 AM6/21/18
to django...@googlegroups.com
Hello guys,

I have a celery worker that I need to be running on a server 24/7. Currently, I am running it in a cmd window. But I need to convert this to a background windows service  so that it can run always without the danger of being closed by anyone. 

Any ideas how this can be done? 

Regards,
Mohammed Noor

Jason

unread,
Jun 21, 2018, 6:33:02 AM6/21/18
to Django users
there's documentation on this http://docs.celeryproject.org/en/latest/userguide/daemonizing.html

but not sure if they're compatible with windows.

Mohammed Noor

unread,
Jun 21, 2018, 9:16:58 AM6/21/18
to django...@googlegroups.com
Thanks. 

I solved it by writing a batch file to run the celery worker and creating a windows task to run the batch file. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/710953fa-2e11-432e-9cee-7c86a46755f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages