Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Duplicate Queue in Config Switches from Strict to Random Weighted Fetch #3911

@chadrschroeder

Description

@chadrschroeder

Sidekiq / Pro / Enterprise version(s): sidekiq-5.1.3, sidekiq-pro-4.0.3

I noticed that if mistakenly duplicate a queue name in my config, SuperFetch will switch from strict ordering to random weighted because the @queues.length == @queues.uniq.length check fails. Would it be possible to raise an ArgumentError for this misconfiguration instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions