Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Running django-q in the background. #487

Closed
aaronn opened this issue Oct 30, 2020 · 0 comments
Closed

Question: Running django-q in the background. #487

aaronn opened this issue Oct 30, 2020 · 0 comments

Comments

@aaronn
Copy link

aaronn commented Oct 30, 2020

Sorry if this is a noob deployment question:

I've used celery in the past but something that is appealing for me with django-q is how simple it is. I'm about to deploy (using a service called Render.com) and I'm wondering if there's a way to deploy it in the background (so that it doesn't take over the console). I have a startup script that runs gunicorn and starts up my web server.

// start.sh
gunicorn --workers=3 --log-level=debug --timeout=90 --worker-class=gevent myapp.wsgi

Is there a way for me to somehow call python manage.py qcluster so that it strictly runs in the background?

// start.sh
python manage.py qcluster
gunicorn --workers=3 --log-level=debug --timeout=90 --worker-class=gevent myapp.wsgi

Edit: Nevermind, sorry, just learned about the &. For anyone wondering the same thing, you can append an ampersand to run something in the background.

python manage.py qcluster &

@aaronn aaronn closed this as completed Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant