Skip to content

Global Partition Resolver is ignored #6

@sebestenyb

Description

@sebestenyb
  1. The BalancedDispatchable contains a base method of getPartitionKey()
  2. The BalancedRedisQueue prioritise this method to resolve the partition in its resolvePartition method over the partitionResolver callback
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions