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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8310e2c63e60bbdbf3b298b50283f03c2e1b0e89870fac72896c7d69ac534002
4
- data.tar.gz: b715e081c0b7a03234e71eb7e90a06a2fc6b85dc9037c377e5ec22d8f56f05f4
3
+ metadata.gz: bfc8dddf71588f6a46ac8aee5b02acd1ddd48bf0d44c294b24c229735abaf87c
4
+ data.tar.gz: f10c3850a4db1047ad891af8b98727bef9e42e321f4e98ada9926e4cacfcd941
5
5
  SHA512:
6
- metadata.gz: 6ed1c722a4d49ddb1927047b4c727b0345ce2b38cc0d4d191047bfc23aca6e7096e4cb148c164a7b342245798d7318c46f29e1efd2736a81041944421743737d
7
- data.tar.gz: c1670e93bedc5111cf2f641fb0a8262de4db2d7100aff68307d19ba0bac55dbd25d040304596f32cfb0ec6edfa3ccf0f1272dc0e513629071ec9b7666ac605da
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 30 seconds for configuration to be ready
42
- 30.times do |i|
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}/30)" if i % 5 == 0
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 30 seconds"
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}"
@@ -1,4 +1,4 @@
1
1
  module SidekiqSqsProcessor
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_sqs_processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unnikrishnan KP