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

Clarify README about unique expiration #36

Merged

Conversation

spacemunkay
Copy link
Contributor

I wanted to make sure I understood how long the uniqueness of a job lasts and, if my observation is correct, update the README accordingly.

I'm confident that the job will be unique for the shorter of the seconds configured or seconds for the job to complete. See: https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/lib/sidekiq-unique-jobs/middleware/client/unique_jobs.rb#L47

I'm less confident about my observation with Sidekiq versions before 3.0, but I'm pretty sure it's the reason why my long running jobs do not remain unique. See: sidekiq/sidekiq#1508 (comment) and https://github.com/mperham/sidekiq/blob/20b7a4fe47585ce9c43981305d146bd087540bbf/lib/sidekiq/web_helpers.rb#L50-L83

Thanks!

mhenrixon added a commit that referenced this pull request May 11, 2014
@mhenrixon mhenrixon merged commit dc25a86 into mhenrixon:master May 11, 2014
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

Successfully merging this pull request may close these issues.

2 participants