- The
BalancedDispatchable contains a base method of getPartitionKey()
- The
BalancedRedisQueue prioritise this method to resolve the partition in its resolvePartition method over the partitionResolver callback
- Since every balanced job uses the
BalancedDispatchable trait, every job implements the getPartitionKey, the global partition resolver is ignored.
I think the trait should not implement the getPartitionKey method, leaving it to the actual jobs, and the property checks should maybe be moved to the BalancedRedisQueue@resolvePartition(), before the method checks.
BalancedDispatchablecontains a base method ofgetPartitionKey()BalancedRedisQueueprioritise this method to resolve the partition in itsresolvePartitionmethod over thepartitionResolvercallbackBalancedDispatchabletrait, every job implements thegetPartitionKey, the global partition resolver is ignored.I think the trait should not implement the
getPartitionKeymethod, leaving it to the actual jobs, and the property checks should maybe be moved to theBalancedRedisQueue@resolvePartition(), before the method checks.