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 +8 -8
- data/lib/sqspoller/message_delegator.rb +3 -2
- data/sqspoller.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGNiMzM0Mjg3ZTZiZTc3ODVmOGExMzZhNjU5M2Y5NDllZDg1ZDEyYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzA1Y2IwNDZjYjliMzE4ZGNkY2EwYTM2NzJjNzQzMzYxMzNmNTZiNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2M1MTA2ODg4MjAyMGQ2YTc5NGFjMTYxN2E4Yjc0MjAwNWI4YTQ4YTlmZGM5
|
10
|
+
NjcwYzM4N2M3MjY1OTZkYTU4YTFjYTZjZTkyZjAxNjFmMWJkODNjYzlhNDQ5
|
11
|
+
ODc3OTE0N2RkYmE1MWE2MjAwN2I2NDAzY2JhOWNkZWJkOTI0YmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
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.
|
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-
|
11
|
+
date: 2016-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|