Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit b5057c4

Browse files
Bump sidekiq-unique-jobs from 6.0.25 to 7.0.1 (mastodon#15627)
* Bump sidekiq-unique-jobs from 6.0.25 to 7.0.1 Bumps [sidekiq-unique-jobs](https://github.com/mhenrixon/sidekiq-unique-jobs) from 6.0.25 to 7.0.1. - [Release notes](https://github.com/mhenrixon/sidekiq-unique-jobs/releases) - [Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/CHANGELOG.md) - [Commits](mhenrixon/sidekiq-unique-jobs@v6.0.25...v7.0.1) Signed-off-by: dependabot[bot] <[email protected]> * Fix migration being broken by sidekiq-unique-jobs update * Fix migration script following API changes in dependency * Fixup Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ThibG <[email protected]>
1 parent ba8a044 commit b5057c4

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ gem 'sanitize', '~> 5.2'
8585
gem 'scenic', '~> 1.5'
8686
gem 'sidekiq', '~> 6.1'
8787
gem 'sidekiq-scheduler', '~> 3.0'
88-
gem 'sidekiq-unique-jobs', '~> 6.0'
88+
gem 'sidekiq-unique-jobs', '~> 7.0'
8989
gem 'sidekiq-bulk', '~>0.2.0'
9090
gem 'simple-navigation', '~> 4.1'
9191
gem 'simple_form', '~> 5.1'

Gemfile.lock

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ GEM
108108
msgpack (~> 1.0)
109109
brakeman (4.10.1)
110110
browser (4.2.0)
111+
brpoplpush-redis_script (0.1.1)
112+
concurrent-ruby (~> 1.0, >= 1.0.5)
113+
redis (>= 1.0, <= 5.0)
111114
builder (3.2.4)
112115
bullet (6.1.4)
113116
activesupport (>= 3.0.0)
@@ -586,9 +589,10 @@ GEM
586589
sidekiq (>= 3)
587590
thwait
588591
tilt (>= 1.4.0)
589-
sidekiq-unique-jobs (6.0.25)
592+
sidekiq-unique-jobs (7.0.1)
593+
brpoplpush-redis_script (> 0.0.0, <= 2.0.0)
590594
concurrent-ruby (~> 1.0, >= 1.0.5)
591-
sidekiq (>= 4.0, < 7.0)
595+
sidekiq (>= 5.0, < 7.0)
592596
thor (>= 0.20, < 2.0)
593597
simple-navigation (4.1.0)
594598
activesupport (>= 2.3.2)
@@ -799,7 +803,7 @@ DEPENDENCIES
799803
sidekiq (~> 6.1)
800804
sidekiq-bulk (~> 0.2.0)
801805
sidekiq-scheduler (~> 3.0)
802-
sidekiq-unique-jobs (~> 6.0)
806+
sidekiq-unique-jobs (~> 7.0)
803807
simple-navigation (~> 4.1)
804808
simple_form (~> 5.1)
805809
simplecov (~> 0.21)

db/migrate/20200508212852_reset_unique_jobs_locks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def up
55
# We do this to clean up unique job digests that were not properly
66
# disposed of prior to https://github.com/tootsuite/mastodon/pull/13361
77

8-
SidekiqUniqueJobs::Digests.delete_by_pattern('*', count: SidekiqUniqueJobs::Digests.count)
8+
until SidekiqUniqueJobs::Digests.new.delete_by_pattern('*').nil?; end
99
end
1010

1111
def down; end

0 commit comments

Comments
 (0)