fourkites-sqspoller 0.1.12.22 → 0.1.12.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGNiMzM0Mjg3ZTZiZTc3ODVmOGExMzZhNjU5M2Y5NDllZDg1ZDEyYQ==
4
+ MGEyNjA3MGFhMDNmNjc5ZmMyZDc0M2E4MjY1M2QxM2NlY2I4MTAyMA==
5
5
  data.tar.gz: !binary |-
6
- YzA1Y2IwNDZjYjliMzE4ZGNkY2EwYTM2NzJjNzQzMzYxMzNmNTZiNg==
6
+ NDNmZDM2ZjhjOWYzOWE5MjkxY2RmMGJiMWNkODUwMjY5MmEzOTY3Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2M1MTA2ODg4MjAyMGQ2YTc5NGFjMTYxN2E4Yjc0MjAwNWI4YTQ4YTlmZGM5
10
- NjcwYzM4N2M3MjY1OTZkYTU4YTFjYTZjZTkyZjAxNjFmMWJkODNjYzlhNDQ5
11
- ODc3OTE0N2RkYmE1MWE2MjAwN2I2NDAzY2JhOWNkZWJkOTI0YmQ=
9
+ MzllYTE5MzI5OWIwNTZjMWU1MmYwOWFiMzgwYWU0MGU5ZTc4OWZjOWNmNWQ5
10
+ MWExMzlhOGI5YmM3NDhkMWU4YjNlNWU2MmMxMGRkYTRlNjczYmExODQxMGVl
11
+ MDVhMTU1MDEyYTlhMGUyOWMxZWU1ZjhiMmM2ZjZjOTMzMTlmZDM=
12
12
  data.tar.gz: !binary |-
13
- YzEyODZkMWZkMGJmNTM3ZTViM2NjOGRmZTdiZDgxZTRiN2IzODQ2OGRiMjIz
14
- OTQyNjFlMzMwMTZiYzQ0MGJmODM5MmVlZTc0N2FhYTY5ZWE2MDU3ODlhY2Qx
15
- YTY5NmUzZTkxNzk0YTc1MjQxZDNkMGYyYzg2OWEzZjIzZDIwOTI=
13
+ ZDI1Mzg4Y2RhMTQyZDhjNmIyMzNmMjUxNzU4YzgyNTM1NTBmODBjNTE1YWI2
14
+ ZDY5NmFmNzBiMjc1ODQzNWYwYzk5YjlhMzg3YmVjZDA4MjQ4OTE0NGE4NTll
15
+ Njc2NzE1MzMxMzNkMmVmOTc5ZGNjZjJlYjM4N2M5YzE1NzA0ZDY=
@@ -22,7 +22,7 @@ module Sqspoller
22
22
  def process(queue_controller, message, queue_name)
23
23
  @semaphore.synchronize {
24
24
  @pending_schedule_tasks +=1
25
- if @connection_pool.queue_length == @max_allowed_queue_size
25
+ if @connection_pool.queue_length + @pending_schedule_tasks >= @max_allowed_queue_size
26
26
  @logger.info "Entered wait state, connection_pool size reached max threshold, pending_schedule_tasks=#{@pending_schedule_tasks}"
27
27
  while @connection_pool.queue_length > @worker_thread_pool_size || @connection_pool.queue_length + @pending_schedule_tasks >= @max_allowed_queue_size
28
28
  sleep(0.01)
data/sqspoller.gemspec CHANGED
@@ -5,7 +5,7 @@ require 'sqspoller/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fourkites-sqspoller"
8
- spec.version = '0.1.12.22'
8
+ spec.version = '0.1.12.23'
9
9
  spec.authors = ["anshul-fk"]
10
10
  spec.email = ["anshul@fourkites.com"]
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fourkites-sqspoller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12.22
4
+ version: 0.1.12.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - anshul-fk