examples/my_unique_job.rb in sidekiq-unique-jobs-6.0.0.rc6 vs examples/my_unique_job.rb in sidekiq-unique-jobs-6.0.0.rc7
- old
+ new
@@ -2,14 +2,13 @@
# :nocov:
class MyUniqueJob
include Sidekiq::Worker
- sidekiq_options queue: :customqueue,
- retry: true,
- retry_count: 10,
- unique: :until_executed,
- lock_expiration: 7_200
+ sidekiq_options lock: :until_executed,
+ lock_expiration: 7_200,
+ queue: :customqueue,
+ retry: 10
def perform(one, two)
[one, two]
end
end