Skip to content

Clarify README about unique expiration#36

Merged
mhenrixon merged 1 commit intomhenrixon:masterfrom
spacemunkay:clarify-readme-unique-expiration
May 11, 2014
Merged

Clarify README about unique expiration#36
mhenrixon merged 1 commit intomhenrixon:masterfrom
spacemunkay:clarify-readme-unique-expiration

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