Sha256: bf33c52d246faeef21a7e99727e54b008a0987702a8fc68be6340ccd6ca7276c
Contents?: true
Size: 477 Bytes
Versions: 5
Compression:
Stored size: 477 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"] do |strategy| strategy.finalize!(msg["jid"], *msg["args"]) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems