Sha256: 0aa6a44d9565b5c98a56e8fb34c67702a9e86d68b9eb71ccf17617e0370e96f3
Contents?: true
Size: 491 Bytes
Versions: 7
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true # internal require "sidekiq/throttled/registry" module Sidekiq module Throttled # Server middleware that notifies strategy that job was finished. # # @private class Middleware # Called within Sidekiq job processing def call(_worker, msg, _queue) yield ensure Registry.get msg["class".freeze] do |strategy| strategy.finalize!(msg["jid".freeze], *msg["args"]) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems