Skip to content

Multiple Throttles #203

@OskarEichler

Description

@OskarEichler

Hey @ixti

I'm wondering if it is possible to apply multiple throttles like so:

    sidekiq_throttle_as :storm_proxy
    sidekiq_throttle(
      :concurrency => { :limit => 15},
      :threshold => {
        :limit => 30,
        :period => 5.seconds
      }
    )

In this case we have a concurrency limit on the proxy provider which we want to apply to a bunch of jobs so that we can monitor and limit the overall concurrency in the web dashboard. But then we want to have individual throttles on each job.

When trying this the web just shows 0 for the :storm_proxy pool so I'm not sure it is being applied. Please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions