fourkites-sqspoller 0.1.12.21 → 0.1.12.22

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
- YmNiOWU5YjEyNGFkOTMwNzQyNjZmNGMwNzQyMmY3MWZjOTJlMTEyMQ==
4
+ ZGNiMzM0Mjg3ZTZiZTc3ODVmOGExMzZhNjU5M2Y5NDllZDg1ZDEyYQ==
5
5
  data.tar.gz: !binary |-
6
- OWQ2ODhkMjViOTA1ZjdiNzdlM2E1YjFmM2MzNzQxNjMxYmFiYjY4Ng==
6
+ YzA1Y2IwNDZjYjliMzE4ZGNkY2EwYTM2NzJjNzQzMzYxMzNmNTZiNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTkyMzczMDg2Y2VhNTJkZjhmZmU4NDAwN2IyNmJiZmFmMDExMWVmNGNlMjYy
10
- NDYwNTFkMzc4NzRmZTBlMzYxMTUwMmM0MjY1OTg1YTUyNWU2ZGMwNmRiZDQy
11
- YWFmMzM2ZTllMTljNzllYTFhYmIxYzNlMDFmM2EwZjY4ZmU1YzA=
9
+ M2M1MTA2ODg4MjAyMGQ2YTc5NGFjMTYxN2E4Yjc0MjAwNWI4YTQ4YTlmZGM5
10
+ NjcwYzM4N2M3MjY1OTZkYTU4YTFjYTZjZTkyZjAxNjFmMWJkODNjYzlhNDQ5
11
+ ODc3OTE0N2RkYmE1MWE2MjAwN2I2NDAzY2JhOWNkZWJkOTI0YmQ=
12
12
  data.tar.gz: !binary |-
13
- ZTBlY2VjNTBiN2RkNzE1ZTc2NGNlN2NhYjM4OTRhMzc2NTk1MDJjZTdjMDNm
14
- ZTgwZjdlNzJiYzZkYjEwM2RmZWNjY2I1NTUxNzdhZGQ1M2JlM2RkZmM5YWEz
15
- Njg4N2YxYzYzMTM4MWQ3NTBmMjY3YTIwZWE0MzMwYzAyZjk1NmE=
13
+ YzEyODZkMWZkMGJmNTM3ZTViM2NjOGRmZTdiZDgxZTRiN2IzODQ2OGRiMjIz
14
+ OTQyNjFlMzMwMTZiYzQ0MGJmODM5MmVlZTc0N2FhYTY5ZWE2MDU3ODlhY2Qx
15
+ YTY5NmUzZTkxNzk0YTc1MjQxZDNkMGYyYzg2OWEzZjIzZDIwOTI=
@@ -23,11 +23,11 @@ module Sqspoller
23
23
  @semaphore.synchronize {
24
24
  @pending_schedule_tasks +=1
25
25
  if @connection_pool.queue_length == @max_allowed_queue_size
26
- @logger.info "Entered wait state, connection_pool size reached max threshold"
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)
29
29
  end
30
- @logger.info "Exiting wait state, connection_pool size reached below worker_thread_pool_size"
30
+ @logger.info "Exiting wait state, connection_pool size reached below worker_thread_pool_size, pending_schedule_tasks=#{@pending_schedule_tasks}"
31
31
  end
32
32
  }
33
33
  begin
@@ -46,6 +46,7 @@ module Sqspoller
46
46
  end
47
47
  end
48
48
  rescue Concurrent::RejectedExecutionError => e
49
+ @pending_schedule_tasks -= 1
49
50
  @logger.info "Caught Concurrent::RejectedExecutionError for #{e.message}"
50
51
  end
51
52
  end
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.21'
8
+ spec.version = '0.1.12.22'
9
9
  spec.authors = ["anshul-fk"]
10
10
  spec.email = ["anshul@fourkites.com"]
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fourkites-sqspoller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12.21
4
+ version: 0.1.12.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - anshul-fk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-02 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler