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

Add combined worker_plus_beat process #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ukch
Copy link

@ukch ukch commented Dec 12, 2015

Limit celery, beat and web to 1 process each

This PR fixes issue #19

Limit celery, beat and web to 1 process each
@MechanisM
Copy link

Not a good idea, it is better to just add additional uwsgi options "smart-attach-daemon" and put celery there. As example:
smart-attach-daemon = sentry --config=sentry.conf.py celery worker --loglevel=INFO
smart-attach-daemon = sentry --config=sentry.conf.py celery beat --loglevel=INFO

This way, Procfile will have just one "web:" and celery would be started by uwsgi.

@hadifarnoud
Copy link

@MechanisM can you please write the full procfile line?

@MechanisM
Copy link

Hey, @hadifarnoud! I think it should be smth like that
Procfile:
web: uwsgi --ini=uwsgi.ini --http=0.0.0.0:$PORT
just it, and remove the other lines.

In uwsgi.ini append at the end:

attach-daemon = sentry --config=sentry.conf.py run worker --loglevel=INFO
attach-daemon = sentry --config=sentry.conf.py run cron --loglevel=INFO
attach-daemon = sentry --config=sentry.conf.py upgrade --noinput

Not tested btw. Read the docs for uwsgi's attach-daemon

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

Successfully merging this pull request may close these issues.

None yet

3 participants