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

How to correctly use celery #5

Open
tanyewei opened this issue Mar 6, 2017 · 1 comment
Open

How to correctly use celery #5

tanyewei opened this issue Mar 6, 2017 · 1 comment

Comments

@tanyewei
Copy link

tanyewei commented Mar 6, 2017

I have modified the default celery configuration

BROKER_TRANSPORT = 'redis'
CELERY_BROKER_URL = 'redis://172.16.222.238:6379/5'
CELERY_RESULT_BACKEND = 'redis://172.16.222.238:6379/5'
CELERY_TASK_SERIALIZER = 'json'
CELERY_DISABLE_RATE_LIMITS = True
CELERY_ACCEPT_CONTENT = ['json', ]
CELERY_IMPORTS = ('app.tasks',)

OperationalError: Error 61 connecting to localhost:6379. Connection refused.

@hero100era
Copy link

This template seems create 2 celery instances, one in extensions.py, and one in celery_run.py, which may result of celery not recevie tasks send by application.

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

2 participants