Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using :until_and_while_executing not yielding expected results #336

Closed
gdgp opened this issue Oct 10, 2018 · 0 comments
Closed

Using :until_and_while_executing not yielding expected results #336

gdgp opened this issue Oct 10, 2018 · 0 comments

Comments

@gdgp
Copy link

gdgp commented Oct 10, 2018

Using sidekiq-unique-jobs 4.0.18, redis 3.2.4, sidekiq 4.2.10, rails 4.2.7.1, ruby 2.3.7.

According to my understanding (reinforced in previous issue), when using the sidekiq_options unique: :until_and_while_executing I should be able to enqueue Job A with arg X, then if while it is enqueued I try to enqueue another Job A with arg X, it does not allow it, but then, once the job starts being processed (leaves the queue), once I try to enqueue another Job A with arg X it should get enqueued, but not processed because there is still another one being processed.

The part that is failing is enqueuing Job A with arg X when the first that was on the queue left it and is being processed. It only lets me enqueue another one once it finishes processing the first one.

What might I be missing?

Thanks in advance

@gdgp gdgp closed this as completed Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant