Skip to content

Queue assignment via decorator apply_async doesn't work #16

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

Open
dedfriedly opened this issue Mar 29, 2020 · 2 comments
Open

Queue assignment via decorator apply_async doesn't work #16

dedfriedly opened this issue Mar 29, 2020 · 2 comments

Comments

@dedfriedly
Copy link

Hi, small other issue here but the apply_async function in the custom task decorator doesn't properly apply routing if a queue is defined. Tested and verified locally. I believe this could be as simple as adding a queue=None to the apply_async object method.

@steinitzu
Copy link
Owner

Hmm the arguments should all be forwarded to base apply_async.
Can you provide a runnable code example to reproduce this?

@dedfriedly
Copy link
Author

Pretty simple, just setup a custom queue consumer (celery -A project worker -Q "blah") and then I tried to push the singleton (decorator @app.task(base=Singleton, queue="blah") to the worker but task never showed up. If I'm being transparent, I can't be 100% sure it wasn't a worker issue but I did test for a while and it seemed consistent to me so wanted to open this.

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