evt-consumer-postgres 2.3.0.0 → 2.3.0.1
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/consumer/postgres/postgres.rb +14 -21
- 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: df44203a715d3a2bd4c4a65f6558e6875a434648b05e6edebe846602c453d35f
|
4
|
+
data.tar.gz: 867c508bb99d2f70b77cbbe890a9fbafaddcbc1242c365afb541e6b27a63e467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75ac64a8972f6aa0b45e4a371be18629a8974420144bda1724b83121b7dd1672239e970c4651b33418ecd704fb58e1b3797cc4d2aeb4c4fb6e14a887f18613e5
|
7
|
+
data.tar.gz: 8c20dfe28278e304371b063c7bd3179445936e206ecdcc12471d3928824af936dcf7dc627257f305032d0a7029f13125637c671f2a861c6552c5d9407d82fe4a
|
@@ -12,35 +12,28 @@ module Consumer
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
def
|
16
|
-
|
17
|
-
logger.info(tag: :*) { "Batch Size: #{batch_size}" }
|
18
|
-
end
|
19
|
-
|
20
|
-
unless correlation.nil?
|
21
|
-
logger.info(tag: :*) { "Correlation: #{correlation}" }
|
22
|
-
end
|
23
|
-
|
24
|
-
unless identifier.nil?
|
25
|
-
logger.info(tag: :*) { "Identifier: #{identifier}" }
|
26
|
-
end
|
15
|
+
def print_startup_info
|
16
|
+
STDOUT.puts " Correlation: #{correlation || '(none)'}"
|
27
17
|
|
28
18
|
unless group_member.nil? && group_size.nil?
|
29
|
-
|
19
|
+
STDOUT.puts " Group Member: #{group_member.inspect}"
|
20
|
+
STDOUT.puts " Group Size: #{group_size.inspect}"
|
30
21
|
end
|
31
22
|
|
32
23
|
unless condition.nil?
|
33
|
-
|
34
|
-
end
|
35
|
-
|
36
|
-
unless poll_interval_milliseconds.nil?
|
37
|
-
logger.info(tag: :*) { "Poll Interval Milliseconds: #{poll_interval_milliseconds}" }
|
24
|
+
STDOUT.puts " Condition: #{condition.inspect || '(none)'}"
|
38
25
|
end
|
26
|
+
end
|
39
27
|
|
40
|
-
|
41
|
-
|
42
|
-
|
28
|
+
def log_startup_info
|
29
|
+
logger.info(tags: [:consumer, :start]) { "Correlation: #{correlation.inspect} (Consumer: #{self.class.name})" }
|
30
|
+
logger.info(tags: [:consumer, :start]) { "Batch Size: #{get.batch_size.inspect} (Consumer: #{self.class.name})" }
|
31
|
+
logger.info(tags: [:consumer, :start]) { "Group Member: #{group_member.inspect} (Consumer: #{self.class.name})" }
|
32
|
+
logger.info(tags: [:consumer, :start]) { "Group Size: #{group_size.inspect} (Consumer: #{self.class.name})" }
|
33
|
+
logger.info(tags: [:consumer, :start]) { "Condition: #{condition.inspect} (Consumer: #{self.class.name})" }
|
34
|
+
end
|
43
35
|
|
36
|
+
def starting
|
44
37
|
if identifier.nil? && !group_member.nil? && !group_size.nil?
|
45
38
|
raise Identifier::Error, 'Identifier must not be omitted when the consumer is a member of a group'
|
46
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-consumer-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.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: 2020-04-
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-consumer
|