Sha256: 21ec4cae514598e5a826e48929650bbff64ad311f41b2766595cfb1c4237a60d
Contents?: true
Size: 561 Bytes
Versions: 16
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true # :nocov: # This class will lock until the job is successfully executed # # It will wait for 0 seconds to acquire a lock and it will expire the unique key after 2 seconds # class UntilExecutedJob include Sidekiq::Worker sidekiq_options backtrace: 10, lock: :until_executed, lock_expiration: 5_000, lock_timeout: 0, queue: :working, retry: 1 def perform(one, two = nil) [one, two] end def after_unlock # NO OP end end
Version data entries
16 entries across 16 versions & 1 rubygems