Skip to content

Wrong documentation for requeue option #232

@mochetts

Description

@mochetts

The documentation for the requeue option seems old / wrong.

I'm getting

ArgumentError: unknown keyword: :requeue (ArgumentError)

On a job configured with these options:

sidekiq_throttle(
  threshold: {limit: 10, period: 1.minute, requeue: {with: :schedule}},
)

Note the documentation states this is the right way of configuring it:
https://github.com/ixti/sidekiq-throttled?tab=readme-ov-file#requeue-strategy

However, digging into the gem, the right way seems to be:

sidekiq_throttle(
  threshold: {limit: 10, period: 1.minute},
  requeue: {with: :schedule}
)

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