Skip to content

undefined method `has_key?' for 10:Fixnum #36

Open
@vanso-waqar

Description

@vanso-waqar

Hi,
I am getting undefined method `has_key?' for 10:Fixnum error on '/sidekiq/queues' page.
When I traced the api/controllers/queues_controller.rb I found an issue with this line

status_counts = Sidekiq::Monitor::Job.where(queue: queue).count(group: 'status')

It works if I change it to

status_counts = Sidekiq::Monitor::Job.where(queue: queue).group_by(&:status)

Please suggest a work around for this.

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