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}
)
The documentation for the requeue option seems old / wrong.
I'm getting
On a job configured with these options:
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: