Sha256: cbd8b10748b3184f0ae64eb5ee04d71aba885dedf26ffe6e302735f4e2e179ea
Contents?: true
Size: 375 Bytes
Versions: 17
Compression:
Stored size: 375 Bytes
Contents
module CanvasSync::JobUniqueness module Strategy class WhileExecuting < Base locks_on :perform RUN_SUFFIX = ":RUN" def on_enqueue wrap_in_batch do yield end end def on_perform lock!(:perform) yield end protected def key super + RUN_SUFFIX end end end end
Version data entries
17 entries across 17 versions & 1 rubygems