queue-bus 0.13.5 → 0.13.6
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/CHANGELOG.md +3 -0
- data/lib/queue_bus/heartbeat.rb +1 -1
- data/lib/queue_bus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 500e592a3741d0ce34feb2a39fb603d562e5d72771c8134a2002e6a4a2bcbc60
|
4
|
+
data.tar.gz: d4b6febb4d5be7acdaea3ed0697c2758ab2c77a365d9c4cae48d2a72c49efdd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe8c421c706f6ddeb65eef00f0dc943282e54220a82b494118e556f3e07b0b8f3923ed71043134868ae4f47966fd1e5b39eee05357bd59fff0c2814d487e8d5
|
7
|
+
data.tar.gz: 3e66f46b18f40268894879b891fa34d9c520590fb5f2827a11727cca780b7554a37a436d073e5ee3f06e2178e9357d3e5d07e3bcd5296363125e17d9b6e56743
|
data/CHANGELOG.md
CHANGED
data/lib/queue_bus/heartbeat.rb
CHANGED
@@ -20,7 +20,7 @@ module QueueBus
|
|
20
20
|
|
21
21
|
::QueueBus.redis do |redis|
|
22
22
|
# return true if we successfully acquired the lock
|
23
|
-
return timeout if redis.
|
23
|
+
return timeout if redis.set(lock_key, timeout, nx: true)
|
24
24
|
|
25
25
|
# see if the existing timeout is still valid and return false if it is
|
26
26
|
# (we cannot acquire the lock during the timeout period)
|
data/lib/queue_bus/version.rb
CHANGED