right way to deploy a django-rq worker

795 Views Asked by At

maybe it's a silly question, but I didn't found much while googling around.

So I'm on the way to transform my development environment to a deploy environment. I connected django and nginx using uwsgi, put both in docker containers... so far no problem.

But I'm using django-rq, so I need a Worker process. In all these nice examples about deploying django I didn't found much about deploying django-rq. All I found was "create a docker container and use the manage.py " like this:

CMD python manage.py rqworker [queue1] [queue2]

Really? Should I just start the worker like this? I think manage.py is just for testing!?

1

There are 1 best solutions below

2
On

You can create a systemd service in Ubuntu then enable and start the service.

FYR: https://github.com/rq/django-rq#deploying-on-ubuntu