makandra_sidekiq 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47a5113e14c3e6b57bae52343b8f25107c7f3eb19c6549f57ef4f3472611aba8
4
- data.tar.gz: 56b1564ce0bf25208cc3f29b02cb03853068a24a919fabbe41338f8f57dde2d4
3
+ metadata.gz: 4b7815d7db44b5727181001de66b8d0dafef348e0df56076cf28794175354de1
4
+ data.tar.gz: d69af72a41fa909214a98b5bafeee7268a8bd0925a852baba677028c79ca238b
5
5
  SHA512:
6
- metadata.gz: e1b74c9f9d8e299357bdd377bc784f6e0c33a5b1b2871422a08d4e41d4ad4202fdec86884c69b6f3b33849b75dbe0397d305ce6988b13b157f0c0b90bb950384
7
- data.tar.gz: c0d6707a0116227fda7ed471c0e5eb5de2349e333aacc6b981881b8011036e210ccc90d3e1b515156038b3927c8502fb284a58e5d053dadbe07f692e2e6060f5
6
+ metadata.gz: 3fc415dc5f85d4ea97bfec1c5a0093afeb6f51988902e47de17026a56ab942ad5d077a9a8e1ac37de83676515f988e1c09a3e66f8e04e01542c8e72abdf0ec49
7
+ data.tar.gz: 8d6b37d81fecaed42de082c477f259232acef7e0378647f366c373e3040b3e426b703ebba71b47efc1742ea466b1c4bda38e4c807574f03d7a6748ad58df4352
@@ -70,9 +70,12 @@ module MakandraSidekiq
70
70
 
71
71
  def running?
72
72
  pid = read_pid
73
- Process.kill(0, pid) if pid
73
+ Process.kill(0, pid) if pid # kill(0, pid) checks pid validity
74
74
  rescue Errno::ESRCH
75
- # not running
75
+ false # Not running
76
+ rescue Errno::EPERM
77
+ # The process from Sidekiq's pidfile does not belong to us. This can occur
78
+ # when Sidekiq for some reason stopped but left behind its pidfile.
76
79
  false
77
80
  end
78
81
 
@@ -1,3 +1,3 @@
1
1
  module MakandraSidekiq
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makandra_sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq