eventboss 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/eventboss/fetcher.rb +0 -8
- data/lib/eventboss/unit_of_work.rb +11 -1
- data/lib/eventboss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08b9d36bef316f4e179285276d2ce46ceddeb35ea23140de3d3b6fedfe3ef23a'
|
4
|
+
data.tar.gz: d2d949a45a3477c0869afb23286a0dda2d4f617a51e500a1e927f2b05f846065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec3db6f0b38a14b33f216567e0f7d6621ee7055ad45c1c68a49a699a1bd8149a8fe067587ae701fcd20d9f9334d399ca508e9b58fd999be5349ac9ff79e3246
|
7
|
+
data.tar.gz: 30eb04a6f2d511624489e42afee250578a745efb084dfb1fd53ec791a8ee78a51134a3673044f63ecefb34d5de341c20cc280149019b1455a72f6cfd17a8e514
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eventboss (1.
|
4
|
+
eventboss (1.2.0)
|
5
5
|
aws-sdk-sns (>= 1.1.0)
|
6
6
|
aws-sdk-sqs (>= 1.3.0)
|
7
7
|
dotenv (~> 2.1, >= 2.1.1)
|
@@ -10,8 +10,8 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
aws-eventstream (1.0.3)
|
13
|
-
aws-partitions (1.
|
14
|
-
aws-sdk-core (3.
|
13
|
+
aws-partitions (1.215.0)
|
14
|
+
aws-sdk-core (3.68.0)
|
15
15
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
16
16
|
aws-partitions (~> 1.0)
|
17
17
|
aws-sigv4 (~> 1.1)
|
data/lib/eventboss/fetcher.rb
CHANGED
@@ -16,14 +16,6 @@ module Eventboss
|
|
16
16
|
@client.delete_message(queue_url: queue.url, receipt_handle: message.receipt_handle)
|
17
17
|
end
|
18
18
|
|
19
|
-
def change_message_visibility(queue, message, visibility_timeout)
|
20
|
-
@client.change_message_visibility(
|
21
|
-
queue_url: queue.url,
|
22
|
-
receipt_handle: message.receipt_handle,
|
23
|
-
visibility_timeout: visibility_timeout
|
24
|
-
)
|
25
|
-
end
|
26
|
-
|
27
19
|
private
|
28
20
|
|
29
21
|
def max_no_of_messages(limit)
|
@@ -21,7 +21,17 @@ module Eventboss
|
|
21
21
|
rescue StandardError => exception
|
22
22
|
handle_exception(exception, processor: processor, message_id: @message.message_id)
|
23
23
|
else
|
24
|
-
cleanup(client)
|
24
|
+
cleanup(client) unless processor.postponed_by
|
25
|
+
ensure
|
26
|
+
change_message_visibility(client, processor.postponed_by) if processor.postponed_by
|
27
|
+
end
|
28
|
+
|
29
|
+
def change_message_visibility(client, postponed_by)
|
30
|
+
client.change_message_visibility(
|
31
|
+
queue_url: @queue.url,
|
32
|
+
receipt_handle: @message.receipt_handle,
|
33
|
+
visibility_timeout: postponed_by
|
34
|
+
)
|
25
35
|
end
|
26
36
|
|
27
37
|
def cleanup(client)
|
data/lib/eventboss/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AirHelp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|