-
-
Notifications
You must be signed in to change notification settings - Fork 914
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
MongoDB Replicaset #81
Conversation
Seems correct. Did you try running tests? thanks |
Hi, yes all Kombu tests pass. 6 Celery tests fail but they seem not On Fri, Nov 11, 2011 at 5:01 PM, Flavio Percoco Premoli
|
Ok, ready to merge. @ask, do you agree? |
@flaper87, yeah, looks good! |
I might be doing something wrong, but I still seem to be having trouble trying to get celery to connect to mongodb using mongouris representing replicasets. I tried to copy @metzlar verbatim. Here is my config and the error it raises:
And the exception:
|
Hi,
I noticed Celery breaks when supplying a MongoDB replicaset inside the connection string. This patch should fix this. My config reads:
MONGODB_HOST = 'mongodb://localhost:27170,localhost:27171'
CELERY_MONGODB_BACKEND_SETTINGS = {
"host": MONGODB_HOST
}
BROKER_HOST = MONGODB_HOST
pymongo can deal with a valid MongoDB connection URI as first argument (host) to pymongo.Connect() thats why I chose to use the HOST config value instead of creating a new one.
I have also made a patch for Celery's mongodb backend for which I will submit a pull-request shortly after this one. I do not have much experience with Kombu so please let me know if there is a more proper way to deal with this.
Cheers,
--Ivan