Replies: 1 comment 4 replies
-
In testing mode, you'd need to add any required server middleware to Sidekiq::Testing.server_middleware for it to run when draining. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the docs https://github.com/sidekiq/sidekiq/wiki/Ent-Unique-Jobs:
I have a
MyJob
withsidekiq_options unique_for: 9999.years
. I have a test where IMyJob.perform
a job, thenSidekiq::Worker.drain_all
and verify the behaviour. The second time I run this test theMyJob.perform
prints outSo somehow the first tests locks this (as expected), but
Sidekiq::Worker.drain_all
does not release this lock when successfully processed (as documentation says).Is there a bug? or am I doing something wrong? or do I misunderstand the documentation?
Beta Was this translation helpful? Give feedback.
All reactions