queue-bus 0.13.4 → 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 +6 -0
- data/lib/queue_bus/application.rb +2 -2
- 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
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.13.6]
|
10
|
+
- Fixing setnx deprecation
|
11
|
+
|
12
|
+
## [0.13.5]
|
13
|
+
- updating redis.pipelined usage to fix the redis-4.8.1 deprecation.
|
14
|
+
|
9
15
|
## [0.13.4]
|
10
16
|
- Removes sadd usage in favor of sadd?
|
11
17
|
|
@@ -11,9 +11,9 @@ module QueueBus
|
|
11
11
|
app_keys = redis.smembers(app_list_key)
|
12
12
|
apps = app_keys.collect { |val| new(val) }
|
13
13
|
|
14
|
-
hashes = redis.pipelined do
|
14
|
+
hashes = redis.pipelined do |pipeline|
|
15
15
|
apps.each do |app|
|
16
|
-
|
16
|
+
pipeline.hgetall(app.redis_key)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
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