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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/sidekiq-queue-pause.rb +7 -3
  3. metadata +16 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8c930391c65c28ca0697a4b9dd5eeaad27ced197
4
- data.tar.gz: eb5a3a8a3c11c452a58b1a7afea09c484ddf0ba9
2
+ SHA256:
3
+ metadata.gz: '0964ee587695c5d418c8cc134b6b509cbf2ebbce082de1a75ea51947b9083c83'
4
+ data.tar.gz: 695bbaef2afde1dc44fdf2c8de1def379a2e6e5653d4ed8cddbcc40ec67611ff
5
5
  SHA512:
6
- metadata.gz: 70551e734828c25b9bc7d57230dcdd8c1ab089279fca2c1250ffc4afec377d6a9f660496b84f51c383999d28fdb9379df1b772c53876a1891a2dc6ba1650e843
7
- data.tar.gz: 7b57627868a2830c47eabbbd9d10f17e08b0493a1e0d5e70fd4823fc62e1c5f3621895bcf2f7db5fe924d71d7adc2b25e44e57b1619611907ef287946532f3e2
6
+ metadata.gz: a92406b7ed12db47758d8ecf7e60d3a755e32d0ca6ca7d579c6e6a395ba251852f2aef16ab0efad0290e7789c7241ab028d750a23b62e3582768a1c8a00d44a7
7
+ data.tar.gz: 1ef22ccbde09317be2699e21a4fad23382010f202dae8c2fc9f6add73269d12919749adc08e060f566c5908b3c7356e2100c85e8178b97d07ab4ef9eca80964b
@@ -1,4 +1,8 @@
1
- require 'celluloid'
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::Fetcher::TIMEOUT)
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::Fetcher::TIMEOUT &&
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.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
- - FlavourSys Technology GmbH
7
+ - Projective Technology GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-21 00:00:00.000000000 Z
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: '3.1'
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: '3.1'
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: http://github.com/FlavourSys/sidekiq-queue-pause
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
- rubyforge_project:
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