shoryuken-waiter 0.0.2 → 0.0.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a27a42bb13b30b19117943d187e1c768d445c66
|
4
|
+
data.tar.gz: 6ad73926ad6d90e0cfe673828685bcf2fae8e44b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27f0f4bfb4aea685603c7c0911f043aa656c2f37cedd4619478ffc5d589a6f26889a94f8816ef1fc5262302eab8d29ac91a65a9e4f5108fdf8b56c4e08076d4d
|
7
|
+
data.tar.gz: de40c02e1ea438359c7c0afca4467ff13bd325bcb50a0c16dadb8c01e562c396dbb739e4e3f8d613c4b9381b00e827b19169dd2749a98c6dcea37e364734702e
|
data/lib/shoryuken/waiter.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Shoryuken
|
2
2
|
module Waiter
|
3
|
-
class
|
3
|
+
class Enqueuer
|
4
4
|
class << self
|
5
5
|
include Util
|
6
6
|
|
@@ -10,7 +10,7 @@ module Shoryuken
|
|
10
10
|
#
|
11
11
|
# TODO If the actor were to crash in the middle of a batch, messages
|
12
12
|
# could get lost
|
13
|
-
def
|
13
|
+
def enqueue_items(table, items)
|
14
14
|
return if items.empty?
|
15
15
|
|
16
16
|
queue_name = items.first["sqs_message_body"]["queue_name"]
|
@@ -22,7 +22,7 @@ module Shoryuken
|
|
22
22
|
query_results(table).each do |response|
|
23
23
|
items = response.items
|
24
24
|
logger.debug { "[Shoryuken::Waiter] Found #{items.count} delayed messages in '#{table.table_name}'" }
|
25
|
-
Shoryuken::Waiter::
|
25
|
+
Shoryuken::Waiter::Enqueuer.enqueue_items(table, items)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoryuken-waiter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Kalafarski
|
@@ -158,9 +158,9 @@ files:
|
|
158
158
|
- bin/setup
|
159
159
|
- lib/shoryuken-waiter.rb
|
160
160
|
- lib/shoryuken/waiter.rb
|
161
|
+
- lib/shoryuken/waiter/enqueuer.rb
|
161
162
|
- lib/shoryuken/waiter/extensions/active_job_adapter.rb
|
162
163
|
- lib/shoryuken/waiter/querier.rb
|
163
|
-
- lib/shoryuken/waiter/scheduler.rb
|
164
164
|
- lib/shoryuken/waiter/version.rb
|
165
165
|
- shoryuken-waiter.gemspec
|
166
166
|
homepage: http://github.com/farski/shoryuken-waiter
|