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

New Messages not being popped When Using MultiDB Setup in Django #16

Open
ghostrocket opened this issue Dec 26, 2010 · 2 comments
Open

Comments

@ghostrocket
Copy link

If I run ghettoq against the default db, everything works fine but if I setup a DB Router to direct all traffic for this app to a separate db, it writes the message to the db but it is never popped. If i restart celeryd, the message is popped and handled correctly.

Messages are being written/read from the correct (separate) db. Putting in some print statements shows that calling Message.objects.all().count() returns the number of objects at celeryd start time but that number never changes. It seems that the result set is being cached perhaps?

@ask
Copy link
Owner

ask commented Dec 29, 2010

So do you change this at runtime, or? celeryd needs to use the same configuration as the client if it is going to use the same database...

@ghostrocket
Copy link
Author

no change at run time. i just restart the server with new settings.

i just confirmed this also happens with django-kombu, should i move this issue to celery?

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