Releases: mhenrixon/sidekiq-unique-jobs
Allow across worker uniqueness
See https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/spec/jobs/unique_acrosss_workers_job.rb for a detailed explanation. There is also a link to this file in the README in the section about uniqueness scope: https://github.com/mhenrixon/sidekiq-unique-jobs#uniqueness-scope.
Fix while_executing
Use a class level mutex for while_executing
. The solution isn't perfect as any jobs will be allowed to be scheduled but at least they won't execute at the same time. The first one in will win and any succeeding jobs will wait until they get a chance.
The perfect way of handling this would be rescheduling or waiting or whatever after some time but that will be a future release.
See https://github.com/mhenrixon/sidekiq-unique-jobs#while-executing for more information.
Fix problem with installing the gem due to v5.0.3
v5.0.4 tag v5.0.4
Speed up gem installation
- Removes test files and appraisals and such from the released gem version to speed up gem installs
More helpful error and debug messages
Before this change we crashed in some situations without telling what really happened. Now we will output a friendly message about why we crashed.
Clear the unique hash
To use it
bundle exec jobs expire
Drop support for Sidekiq < 4
v5.0.0 Style stuff
Allow running tests without redis
- Allow running tests against mock_redis
- Fix some problems with locks
All information about how to set it up can be found at https://github.com/mhenrixon/sidekiq-unique-jobs/tree/master/rails_example/spec/controllers/work_controller_spec.rb
Always run deletion of keys regardless on release_lock
- Always release lock in the lua script
release_lock.lua
and return success #169 - Rename
aquire_lock
toacquire_lock