Sha256: c19ec9bd5e20f4a45dfce2b346591e75582193dfa8ac73f8c019ea2714eae3b4
Contents?: true
Size: 486 Bytes
Versions: 4
Compression:
Stored size: 486 Bytes
Contents
module Sidekiq::Status # Should be in the client middleware chain class ClientMiddleware include Storage # Uses msg['jid'] id and puts :queued status in the job's Redis hash # @param [Class] worker_class if includes Sidekiq::Status::Worker, the job gets processed with the plugin # @param [Array] msg job arguments # @param [String] queue the queue's name def call(worker_class, msg, queue) store_status msg['jid'], :queued yield end end end
Version data entries
4 entries across 4 versions & 1 rubygems