frontera icon indicating copy to clipboard operation
frontera copied to clipboard

Fix sqlalchemy queue component partition_id

Open jpbalarini opened this issue 6 years ago • 3 comments

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!

jpbalarini avatar Nov 15 '18 18:11 jpbalarini

Thanks for this fix @jpbalarini !

icapurro avatar Nov 16 '18 13:11 icapurro

@sibiryakov what do you think? Thanks!

jpbalarini avatar Jan 03 '19 18:01 jpbalarini

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

jpbalarini avatar May 17 '19 20:05 jpbalarini