Skip to content

Commit

Permalink
Merge pull request #36 from spacemunkay/clarify-readme-unique-expiration
Browse files Browse the repository at this point in the history
Clarify README about unique expiration
  • Loading branch information
mhenrixon committed May 11, 2014
2 parents 64aa513 + 1292a10 commit dc25a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ sidekiq_options unique: true
```

For jobs scheduled in the future it is possible to set for how long the job
should be unique. The job will be unique for the number of seconds configured
or until the job has been completed.
should be unique. The job will be unique for the number of seconds configured (default 30 minutes)
or until the job has been completed. Thus, the job will be unique for the shorter of the two. Note that Sidekiq versions before 3.0 will remove job keys after an hour, which means jobs can remain unique for at most an hour.

*If you want the unique job to stick around even after it has been successfully
processed then just set the unique_unlock_order to anything except `:before_yield` or `:after_yield` (`unique_unlock_order = :never`)
Expand Down

0 comments on commit dc25a86

Please sign in to comment.