sidekiq_alive 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +2 -2
- data/.github/workflows/test.yml +1 -1
- data/Gemfile.lock +1 -1
- data/docker-compose.yml +0 -1
- data/lib/sidekiq_alive/version.rb +1 -1
- data/lib/sidekiq_alive.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f200ab5c4b5282e98520a57e341fdc98d73d971abca9931c96135dd07b505d0
|
|
4
|
+
data.tar.gz: 7eca663e0264246ff8a285a166233054ea01b446b526fccd9dc1382c1acbf493
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcc7753c96ef6c364f660b6ec5ab0c9a0540d77d2ba962666a090b94bec5eca59d722123122db4715f7604144bab13398034414890eb6100a45baa3d1db5070e
|
|
7
|
+
data.tar.gz: 16d277c8cbe259be7ad38e66e2f359c29a293f6cf399783305a243ab061c63e8c7cfe7fb2f7ad7944473ba7cabea8e37e332630b30a56a956682d9a1cdaaf2bd
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
runs-on: ubuntu-latest
|
|
19
19
|
strategy:
|
|
20
20
|
matrix:
|
|
21
|
-
ruby-version: ["2.6", "2.7", "3.0"]
|
|
21
|
+
ruby-version: ["2.6", "2.7", "3.0", "3.1"]
|
|
22
22
|
services:
|
|
23
23
|
# Label used to access the service container
|
|
24
24
|
redis:
|
|
@@ -40,7 +40,7 @@ jobs:
|
|
|
40
40
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
41
41
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
|
42
42
|
# uses: ruby/setup-ruby@v1
|
|
43
|
-
uses: ruby/setup-ruby@
|
|
43
|
+
uses: ruby/setup-ruby@v1
|
|
44
44
|
with:
|
|
45
45
|
ruby-version: ${{ matrix.ruby-version }}
|
|
46
46
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
data/.github/workflows/test.yml
CHANGED
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
steps:
|
|
33
33
|
- uses: actions/checkout@v2
|
|
34
34
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
35
|
-
uses: ruby/setup-ruby@
|
|
35
|
+
uses: ruby/setup-ruby@v1
|
|
36
36
|
with:
|
|
37
37
|
ruby-version: ${{ matrix.ruby-version }}
|
|
38
38
|
- name: Install dependencies
|
data/Gemfile.lock
CHANGED
data/docker-compose.yml
CHANGED
data/lib/sidekiq_alive.rb
CHANGED
|
@@ -56,10 +56,12 @@ module SidekiqAlive
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
def self.deep_scan(keyword, keys = [], cursor = 0)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
loop do
|
|
60
|
+
cursor, found_keys = SidekiqAlive.redis.scan(cursor, match: keyword, count: 1000)
|
|
61
|
+
keys += found_keys
|
|
62
|
+
break if cursor.to_i == 0
|
|
63
|
+
end
|
|
64
|
+
keys
|
|
63
65
|
end
|
|
64
66
|
|
|
65
67
|
def self.purge_pending_jobs
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sidekiq_alive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artur Pañach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|