Sha256: 2a823b6412688003a318afee3b7c7683445c0bfb7d31b5aae37a0a1214a3bbda

Contents?: true

Size: 325 Bytes

Versions: 22

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

module Sidekiq
  module Throttled
    module Patches
      module Queue
        def paused?
          QueuesPauser.instance.paused? name
        end

        def self.apply!
          require "sidekiq/api"
          ::Sidekiq::Queue.send(:prepend, self)
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sidekiq-throttled-0.15.1 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.18.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.17.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.16.2 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.16.1 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.16.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.15.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.14.1 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.13.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.12.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.11.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.10.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.10.0.beta lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.10.0.alpha lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.9.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.8.2 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.8.1 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.8.0 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.7.3 lib/sidekiq/throttled/patches/queue.rb
sidekiq-throttled-0.7.2 lib/sidekiq/throttled/patches/queue.rb