Sha256: e5190b6bcada06588390c0d240e07c1cbba00ee5dae269b86c2f91c96c172152
Contents?: true
Size: 562 Bytes
Versions: 6
Compression:
Stored size: 562 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 queue: :working, retry: 1, backtrace: 10, unique: :until_executed, lock_timeout: 0, lock_expiration: 5000 def perform(one, two = nil) [one, two] end def after_unlock # NO OP end end
Version data entries
6 entries across 6 versions & 1 rubygems