sidekiq_sqs_processor 0.1.4 → 0.1.5
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/sidekiq_sqs_processor/railtie.rb +4 -4
- data/lib/sidekiq_sqs_processor/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: bfc8dddf71588f6a46ac8aee5b02acd1ddd48bf0d44c294b24c229735abaf87c
|
4
|
+
data.tar.gz: f10c3850a4db1047ad891af8b98727bef9e42e321f4e98ada9926e4cacfcd941
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbe2db037698eff15909b12389f7b9cfb4a7729eb4499721182d7a9c96cde9ef7a39e9700e844695720b0399bfd222b23fa8bdbd6aba12e40f281c0eaff83390
|
7
|
+
data.tar.gz: e4e7c8efc7288ea0483c83b3d0d3923b239a276d01a0b3cd5f7a088cf13ace835bc1573539e69b8eebc77f4a407e02f95cb5fc657afabee749610b7fddea2daf
|
@@ -38,8 +38,8 @@ module SidekiqSqsProcessor
|
|
38
38
|
begin
|
39
39
|
puts "[SidekiqSqsProcessor] Initializing SQS poller in background thread..."
|
40
40
|
|
41
|
-
# Wait for up to
|
42
|
-
|
41
|
+
# Wait for up to 2 seconds for configuration to be ready
|
42
|
+
2.times do |i|
|
43
43
|
if SidekiqSqsProcessor.configuration.ready_for_polling?
|
44
44
|
puts "[SidekiqSqsProcessor] Configuration is ready, starting poller..."
|
45
45
|
if SidekiqSqsProcessor.start_continuous_poller
|
@@ -49,14 +49,14 @@ module SidekiqSqsProcessor
|
|
49
49
|
end
|
50
50
|
break
|
51
51
|
else
|
52
|
-
puts "[SidekiqSqsProcessor] Waiting for configuration to be ready... (#{i+1}/
|
52
|
+
puts "[SidekiqSqsProcessor] Waiting for configuration to be ready... (#{i+1}/2)" if i % 1 == 0
|
53
53
|
sleep 1
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
57
|
# Final check after timeout
|
58
58
|
unless SidekiqSqsProcessor.configuration.ready_for_polling?
|
59
|
-
puts "[SidekiqSqsProcessor] WARNING: Configuration not ready after
|
59
|
+
puts "[SidekiqSqsProcessor] WARNING: Configuration not ready after 2 seconds"
|
60
60
|
puts "[SidekiqSqsProcessor] WARNING: SQS polling will not start"
|
61
61
|
puts "[SidekiqSqsProcessor] WARNING: Current configuration state:"
|
62
62
|
puts "[SidekiqSqsProcessor] Queue workers: #{SidekiqSqsProcessor.configuration.queue_workers.inspect}"
|