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

Fix sqlalchemy queue component partition_id #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpbalarini
Copy link

@jpbalarini jpbalarini commented Nov 15, 2018

I found that the partition id was always set to 0 when disabling the QUEUE_HOSTNAME_PARTITIONING setting, using a sqlalchemy backend. The problem was that the schedule method on the Queue component was always using the hostname as the partitioning key (independent of the QUEUE_HOSTNAME_PARTITIONING setting).

Also added a quick description of the QUEUE_HOSTNAME_PARTITIONING setting for the documentation (since it was missing).

Thanks!

@icapurro
Copy link
Contributor

Thanks for this fix @jpbalarini !

@jpbalarini
Copy link
Author

@sibiryakov what do you think?
Thanks!

@jpbalarini jpbalarini force-pushed the bug/fix_queue_partition branch from 7af4e1c to c36b645 Compare March 25, 2019 20:57
@jpbalarini
Copy link
Author

@sibiryakov what do you think of these changes? Adding them will fix the case when someone disables hostname partitioning (my case)

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

Successfully merging this pull request may close these issues.

2 participants