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

Celery mongo backend fails with greentlet + pymongo > 3.0 #2743

Closed
sukrit007 opened this issue Aug 4, 2015 · 4 comments
Closed

Celery mongo backend fails with greentlet + pymongo > 3.0 #2743

sukrit007 opened this issue Aug 4, 2015 · 4 comments

Comments

@sukrit007
Copy link
Contributor

Given:
A celery worker configured to use greelet and mongo backend using pymongo > 3.0

When:
I execute any task that requires backend

Then:
My task fails with error

ConfigurationError: Unknown option use_greenlets

Cause:
use_greenlets option was removed in pymongo 3.0.

https://github.com/celery/celery/blob/master/celery/backends/mongodb.py#L161

We possibly need to check the version of pymongo prior to passing this option.

See: http://emptysqua.re/blog/it-seemed-like-a-good-idea-at-the-time-pymongo-use-greenlets

sukrit007 added a commit to totem/cluster-orchestrator that referenced this issue Aug 4, 2015
sukrit007 added a commit to sukrit007/celery that referenced this issue Aug 5, 2015
Fixes celery issue for pymongo 3+ with gevent
@thedrow
Copy link
Member

thedrow commented Sep 1, 2015

@celery/celeryproject Don't close this until I cherry pick it into master as well

@ask
Copy link
Contributor

ask commented Oct 26, 2015

Hey @sukrit007, can you please add your name to https://github.com/celery/celery/edit/master/CONTRIBUTORS.txt ?

@ask
Copy link
Contributor

ask commented Oct 26, 2015

Cherry picked into master

@ask ask closed this as completed Oct 26, 2015
@sukrit007
Copy link
Contributor Author

@ask done. PR: #2887

ask pushed a commit that referenced this issue Oct 26, 2015
Fixes celery issue for pymongo 3+ with gevent
tristan0x pushed a commit to cogniteev/celery that referenced this issue Dec 18, 2015
Fixes celery issue for pymongo 3+ with gevent
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

3 participants