eventq_aws 0.3.3 → 0.3.4
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/lib/eventq_aws/aws_queue_worker.rb +2 -3
- data/lib/eventq_aws/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6471bdd6b18f30d44b11f4279793dc502d532464
|
4
|
+
data.tar.gz: 5e68d6b2e6ab5d26de06a8b49aa4a087764febbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8a11b3e593d6e6a034a77c1ea5cba7db35bef86ee642f78150dea6a0e5cef29c942bf1c5b0e943d303187268070d9356bfdf1781284cf2c853a66509226bba8
|
7
|
+
data.tar.gz: 57fb26b969ba2371d58342a5e0baaf3d260a87b63bc651cd2927174289f8bf4f93fac390d984326123eefea0c80734aaed5cc191db9102a3fe7c489921c0eb50
|
@@ -57,14 +57,14 @@ module EventQ
|
|
57
57
|
queue_url: q,
|
58
58
|
max_number_of_messages: 1,
|
59
59
|
wait_time_seconds: 1,
|
60
|
-
|
60
|
+
attribute_names: ['ApproximateReceiveCount']
|
61
61
|
})
|
62
62
|
|
63
63
|
#check that a message was received
|
64
64
|
if response.messages.length > 0
|
65
65
|
|
66
66
|
msg = response.messages[0]
|
67
|
-
retry_attempts = msg.
|
67
|
+
retry_attempts = msg.attributes['ApproximateReceiveCount'].to_i - 1
|
68
68
|
|
69
69
|
#deserialize the message payload
|
70
70
|
message = Oj.load(msg.body)
|
@@ -147,7 +147,6 @@ module EventQ
|
|
147
147
|
|
148
148
|
def reject_message(queue, client, msg, q, retry_attempts)
|
149
149
|
if !queue.allow_retry || retry_attempts >= queue.max_retry_attempts
|
150
|
-
|
151
150
|
#remove the message from the queue so that it does not get retried again
|
152
151
|
client.sqs.delete_message({ queue_url: q, receipt_handle: msg.receipt_handle })
|
153
152
|
end
|
data/lib/eventq_aws/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventq_aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|