examples/another_unique_job.rb in sidekiq-unique-jobs-6.0.0.rc6 vs examples/another_unique_job.rb in sidekiq-unique-jobs-6.0.0.rc7
- old
+ new
@@ -2,11 +2,13 @@
# :nocov:
class AnotherUniqueJob
include Sidekiq::Worker
- sidekiq_options queue: :working2, retry: 1, backtrace: 10,
- unique: :until_executed
+ sidekiq_options backtrace: 10,
+ lock: :until_executed,
+ queue: :working2,
+ retry: 1
def perform(args)
args
end
end