sidekiq-queue-pause 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/sidekiq-queue-pause.rb +7 -3
- metadata +16 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '0964ee587695c5d418c8cc134b6b509cbf2ebbce082de1a75ea51947b9083c83'
|
4
|
+
data.tar.gz: 695bbaef2afde1dc44fdf2c8de1def379a2e6e5653d4ed8cddbcc40ec67611ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a92406b7ed12db47758d8ecf7e60d3a755e32d0ca6ca7d579c6e6a395ba251852f2aef16ab0efad0290e7789c7241ab028d750a23b62e3582768a1c8a00d44a7
|
7
|
+
data.tar.gz: 1ef22ccbde09317be2699e21a4fad23382010f202dae8c2fc9f6add73269d12919749adc08e060f566c5908b3c7356e2100c85e8178b97d07ab4ef9eca80964b
|
data/lib/sidekiq-queue-pause.rb
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'celluloid'
|
3
|
+
rescue LoadError
|
4
|
+
# Sidekiq 4.2+
|
5
|
+
end
|
2
6
|
require 'sidekiq'
|
3
7
|
require 'sidekiq/fetch'
|
4
8
|
|
@@ -48,7 +52,7 @@ module Sidekiq
|
|
48
52
|
if qcmd.size > 1
|
49
53
|
retrieve_work_for_queues qcmd
|
50
54
|
else
|
51
|
-
sleep(Sidekiq::QueuePause.retry_after || Sidekiq::
|
55
|
+
sleep(Sidekiq::QueuePause.retry_after || Sidekiq::BasicFetch::TIMEOUT)
|
52
56
|
nil
|
53
57
|
end
|
54
58
|
end
|
@@ -61,7 +65,7 @@ module Sidekiq
|
|
61
65
|
def unpaused_queues_cmd
|
62
66
|
queues = queues_cmd
|
63
67
|
queues.reject do |q|
|
64
|
-
q != Sidekiq::
|
68
|
+
q != Sidekiq::BasicFetch::TIMEOUT &&
|
65
69
|
Sidekiq::QueuePause.paused?(q.gsub('queue:', ''), Sidekiq::QueuePause.process_key)
|
66
70
|
end
|
67
71
|
end
|
metadata
CHANGED
@@ -1,38 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-queue-pause
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Projective Technology GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.0'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '5.0'
|
27
33
|
description: Let's you pause/unpause individual sidekiq queues.
|
28
|
-
email:
|
29
|
-
- technology@flavoursys.com
|
34
|
+
email: technology@projective.io
|
30
35
|
executables: []
|
31
36
|
extensions: []
|
32
37
|
extra_rdoc_files: []
|
33
38
|
files:
|
34
39
|
- lib/sidekiq-queue-pause.rb
|
35
|
-
homepage:
|
40
|
+
homepage: https://github.com/projectivetech/sidekiq-queue-pause
|
36
41
|
licenses:
|
37
42
|
- MIT
|
38
43
|
metadata: {}
|
@@ -51,8 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
56
|
- !ruby/object:Gem::Version
|
52
57
|
version: '0'
|
53
58
|
requirements: []
|
54
|
-
|
55
|
-
rubygems_version: 2.2.2
|
59
|
+
rubygems_version: 3.2.5
|
56
60
|
signing_key:
|
57
61
|
specification_version: 4
|
58
62
|
summary: Pause a Sidekiq queue
|