evt-consumer 1.0.1.0 → 1.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/consumer/consumer.rb +7 -1
- metadata +3 -5
- data/lib/consumer/postgres +0 -1
- data/lib/consumer/postgres.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 404efa27847f6aca320849476c8d941d9102ac1389b39bb9cd08276765965f0a
|
4
|
+
data.tar.gz: c76eae7c7688327d5b40da8ad995b900ddb79278e934cff388e4815d63313c7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a6d656b92c8ed27ee8fc1ade305677e83f4495388f5be08a18c48ca4aebe44799c4d0a311a9f29df5129b43c3a132502395ab3da30b4d5930ba8ed9dfe901ea
|
7
|
+
data.tar.gz: cd5958ddab60a55d8e09a1dc66309fe888b77e4fade7bc394d81f3220f83c2ef1139b4ebb26feb0dfa0f02d79c34cd664aee9be8d21c3598a9902314bc6f07b9
|
data/lib/consumer/consumer.rb
CHANGED
@@ -64,6 +64,12 @@ module Consumer
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def start(&probe)
|
67
|
+
logger.info(tag: :*) { "Starting consumer: #{self.class.name} (Stream: #{stream_name}, Identifier: #{identifier || '(none)'}, Position: #{subscription.position})" }
|
68
|
+
|
69
|
+
self.class.handler_registry.each do |handler|
|
70
|
+
logger.info(tag: :*) { "Handler: #{handler.name} (Stream Name: #{stream_name}, Consumer: #{self.class.name})" }
|
71
|
+
end
|
72
|
+
|
67
73
|
_, subscription_thread = ::Actor::Start.(subscription)
|
68
74
|
|
69
75
|
actor_address, actor_thread = Actor.start(self, subscription, include: :thread)
|
@@ -74,7 +80,7 @@ module Consumer
|
|
74
80
|
probe.(self, [actor_thread, subscription_thread], [actor_address, subscription_address])
|
75
81
|
end
|
76
82
|
|
77
|
-
logger.info(tag: :*) { "
|
83
|
+
logger.info(tag: :*) { "Started consumer: #{self.class.name} (Stream: #{stream_name}, Identifier: #{identifier || '(none)'}, Position: #{subscription.position})" }
|
78
84
|
|
79
85
|
AsyncInvocation::Incorrect
|
80
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-consumer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.1.
|
4
|
+
version: 1.0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ntl-actor
|
@@ -132,8 +132,6 @@ files:
|
|
132
132
|
- lib/consumer/position_store.rb
|
133
133
|
- lib/consumer/position_store/substitute.rb
|
134
134
|
- lib/consumer/position_store/telemetry.rb
|
135
|
-
- lib/consumer/postgres
|
136
|
-
- lib/consumer/postgres.rb
|
137
135
|
- lib/consumer/subscription.rb
|
138
136
|
- lib/consumer/subscription/defaults.rb
|
139
137
|
- lib/consumer/subscription/get_batch.rb
|
@@ -158,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
156
|
version: '0'
|
159
157
|
requirements: []
|
160
158
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.7.
|
159
|
+
rubygems_version: 2.7.3
|
162
160
|
signing_key:
|
163
161
|
specification_version: 4
|
164
162
|
summary: Continuous subscription to a stream and message dispatching to handlers
|
data/lib/consumer/postgres
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lib/consumer/home/ntl/Projects/eventide-project/consumer-postgres/lib/consumer/postgres
|
data/lib/consumer/postgres.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lib/consumer/home/ntl/Projects/eventide-project/consumer-postgres/lib/consumer/postgres.rb
|