botanalytics 0.2.3 → 0.2.4
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/botanalytics/amazon.rb +2 -2
- data/lib/botanalytics/facebook.rb +2 -2
- data/lib/botanalytics/generic.rb +2 -2
- data/lib/botanalytics/google.rb +2 -2
- data/lib/botanalytics/slack.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bee5ffb6479f0573f57057fd11213b806d1327e6e7cfb727446b72a56582660
|
|
4
|
+
data.tar.gz: 1a3c8c1f3a54d7a3efbed7e74017c4715eb6e3ff0684aba8fd355332ab3ae03d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9867be496c3613629527567381fd052bd101b4fb3de4ef0cdeff5457c95bdcbc4771c413b12437e344826a951dbe90c3dacf84de818f4539c0eb739eb9fb24f5
|
|
7
|
+
data.tar.gz: 109ff13e50417e683026dad780436e384d93f4c9ae35a692050e06fdc02aa2126f543c4c97c3a4beb292eba298548fbb075f807fea43f9bb25c83a0e677964d3
|
data/lib/botanalytics/amazon.rb
CHANGED
|
@@ -13,8 +13,8 @@ class AmazonAlexa < Envoy
|
|
|
13
13
|
require 'concurrent'
|
|
14
14
|
@executor_service = Concurrent::ThreadPoolExecutor.new(
|
|
15
15
|
min_threads: 1,
|
|
16
|
-
max_threads: Concurrent.processor_count,
|
|
17
|
-
max_queue:
|
|
16
|
+
max_threads: Concurrent.processor_count * 2,
|
|
17
|
+
max_queue: Concurrent.processor_count * 1000,
|
|
18
18
|
fallback_policy: :caller_runs
|
|
19
19
|
)
|
|
20
20
|
informs("Mode: Async...")
|
|
@@ -17,8 +17,8 @@ class FacebookMessenger < Envoy
|
|
|
17
17
|
require 'concurrent'
|
|
18
18
|
@executor_service = Concurrent::ThreadPoolExecutor.new(
|
|
19
19
|
min_threads: 1,
|
|
20
|
-
max_threads: Concurrent.processor_count,
|
|
21
|
-
max_queue:
|
|
20
|
+
max_threads: Concurrent.processor_count * 2,
|
|
21
|
+
max_queue: Concurrent.processor_count * 1000,
|
|
22
22
|
fallback_policy: :caller_runs
|
|
23
23
|
)
|
|
24
24
|
informs("Mode: Async...")
|
data/lib/botanalytics/generic.rb
CHANGED
|
@@ -12,8 +12,8 @@ class Generic < Envoy
|
|
|
12
12
|
require 'concurrent'
|
|
13
13
|
@executor_service = Concurrent::ThreadPoolExecutor.new(
|
|
14
14
|
min_threads: 1,
|
|
15
|
-
max_threads: Concurrent.processor_count,
|
|
16
|
-
max_queue:
|
|
15
|
+
max_threads: Concurrent.processor_count * 2,
|
|
16
|
+
max_queue: Concurrent.processor_count * 1000,
|
|
17
17
|
fallback_policy: :caller_runs
|
|
18
18
|
)
|
|
19
19
|
informs("Mode: Async...")
|
data/lib/botanalytics/google.rb
CHANGED
|
@@ -13,8 +13,8 @@ class GoogleAssistant < Envoy
|
|
|
13
13
|
require 'concurrent'
|
|
14
14
|
@executor_service = Concurrent::ThreadPoolExecutor.new(
|
|
15
15
|
min_threads: 1,
|
|
16
|
-
max_threads: Concurrent.processor_count,
|
|
17
|
-
max_queue:
|
|
16
|
+
max_threads: Concurrent.processor_count * 2,
|
|
17
|
+
max_queue: Concurrent.processor_count * 1000,
|
|
18
18
|
fallback_policy: :caller_runs
|
|
19
19
|
)
|
|
20
20
|
informs("Mode: Async...")
|
data/lib/botanalytics/slack.rb
CHANGED
|
@@ -20,8 +20,8 @@ class SlackRTMApi < Envoy
|
|
|
20
20
|
require 'concurrent'
|
|
21
21
|
@executor_service = Concurrent::ThreadPoolExecutor.new(
|
|
22
22
|
min_threads: 1,
|
|
23
|
-
max_threads:
|
|
24
|
-
max_queue:
|
|
23
|
+
max_threads: 2,
|
|
24
|
+
max_queue: 1000,
|
|
25
25
|
fallback_policy: :caller_runs
|
|
26
26
|
)
|
|
27
27
|
@executor_service.post do
|
|
@@ -191,8 +191,8 @@ class SlackEventApi < Envoy
|
|
|
191
191
|
require 'concurrent'
|
|
192
192
|
@executor_service = Concurrent::ThreadPoolExecutor.new(
|
|
193
193
|
min_threads: 1,
|
|
194
|
-
max_threads: Concurrent.processor_count+1,
|
|
195
|
-
max_queue:
|
|
194
|
+
max_threads: Concurrent.processor_count * 2 + 1,
|
|
195
|
+
max_queue: Concurrent.processor_count * 1000,
|
|
196
196
|
fallback_policy: :caller_runs
|
|
197
197
|
)
|
|
198
198
|
@executor_service.post do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: botanalytics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Beyhan Esen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-04-
|
|
11
|
+
date: 2018-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|