You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 7.1.12, setting lock_timeout to nil for a given worker to ensure the queue waits indefinitely as described in the docs causes an exception
Expected behavior
Setting lock_timeout to nil should continuously re-enqueue the job until it can be picked up.
Current behavior
NoMethodError: undefined method `+' for nil:NilClass (Most recent call first)
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 327 in drift
(val + 2).to_f * CLOCK_DRIFT_FACTOR
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 331 in add_drift
val + drift(val)
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 244 in primed_async
.value(add_drift(wait || config.timeout))
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 196 in call
primed_method.call(conn, wait) do |primed_jid|
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 196 in block in lock!
primed_method.call(conn, wait) do |primed_jid|
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 228 in enqueue
yield job_id
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 193 in lock!
enqueue(conn) do |queued_jid|
File /app/vendor/bundle/ruby/2.7.0/gems/sidekiq-unique-jobs-7.1.12/lib/sidekiq_unique_jobs/locksmith.rb line 105 in block in execute
lock!(conn, method(:primed_async), &block)
Describe the bug
In version 7.1.12, setting lock_timeout to
nil
for a given worker to ensure the queue waits indefinitely as described in the docs causes an exceptionExpected behavior
Setting lock_timeout to
nil
should continuously re-enqueue the job until it can be picked up.Current behavior
Worker class
The text was updated successfully, but these errors were encountered: