Questions tagged [sidekiq-unique-jobs]

2 questions
7
votes
1 answer

Sidekiq unique jobs with lock_expiration not working as intended

I'm having an issue with lock_expiration and sidekiq unique jobs. gem 'sidekiq', '4.2.10' gem 'sidekiq-cron', '1.2.0' gem 'sidekiq-unique-jobs', '6.0.25' With the sidekiq options of: sidekiq_options queue: :medium, retry: 3, lock: :until_executed,…
DickieBoy
  • 4,886
  • 1
  • 28
  • 47
1
vote
0 answers

Rspec: How to test that a worker having the sidekiq_option lock: :until_executed isn't enqueued twice?

I'd like to test my worker with Rspec and the gem sidekiq-uniq-job. Let's say I have this job : class TestJob < ApplicationWorker include Sidekiq::Worker sidekiq_options queue: 'test_queue', lock: :until_executed def perform puts "Hello…