Sha256: 6d906543cac332883a99704297333bf6461587cf3f929b238499e1b1ee2110b4
Contents?: true
Size: 430 Bytes
Versions: 3
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs module Server class Middleware include OptionsWithFallback def call(worker_class, item, queue) @worker_class = worker_class @item = item @queue = queue return yield if unique_disabled? lock.execute do yield end end protected attr_reader :item end end end
Version data entries
3 entries across 3 versions & 1 rubygems