phobos 1.8.2 → 1.8.3.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3f3c1ad74b3d1ee04488489b58fd47537cc49b9fd16c3752147aa5474bcd056
4
- data.tar.gz: 51ca16ae8151c2382a1a7437705ac367d12e719d5d543f741c16a009e866c9a3
3
+ metadata.gz: 94cb69f1956951dadecde1cfee5acf2eba368fcba756658242f9d3578a38bd5b
4
+ data.tar.gz: 9ad68c2dde68e2360d0cd4ab9882795c5d900c99e56a94c527880ec826c26ff3
5
5
  SHA512:
6
- metadata.gz: 7fb6905d14486add7486adc7949aca8f45205afb9477853cd90a4d547eb4e616844d9c3dd66a179cc555fba132b6e5013bb0e2ab99a97b7eed3cf8e676d391e1
7
- data.tar.gz: d166d4af37a4c5cfc99235a53066c1815c4068de338fd1b5555f9488d1a42c7efa41cb998dff784fa871f7233c78233c81221e51d84ccb0774f227df74536de9
6
+ metadata.gz: 0eb8e4ff3dcc452312d45c5fd674c296efe89bbe3b74bf6e31c8e57795e21277e922daab460db01207ea9ba6b6517c2ea5328bd249b5221e4ccaa236bb7a0868
7
+ data.tar.gz: 2373edf0b9da8f3136dab604f0fe8a1705bb9fd1a2c649a32f19e1f278e593b1c97ead5d1f5468e8e99e8c29c90432826cd013c9e20599deba430c14fc0c9601
data/CHANGELOG.md CHANGED
@@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## UNRELEASED
8
8
 
9
- ## [1.8.2] - 2019-10-23
9
+ ## [1.8.3-beta1] - 2019-11-11
10
+ - Automatically heartbeat after every message if necessary in batch
11
+ mode.
12
+
13
+ ## [1.8.2] - 2019-11-11
10
14
  - Version bump for official release.
11
15
 
12
16
  ## [1.8.2-beta2] - 2019-06-21
@@ -109,11 +109,8 @@ listeners:
109
109
  # Possible values: [`message`, `batch` (default)]
110
110
  # - `message` will yield individual messages from Ruby Kafka using `each_message` and will commit/heartbeat at every consumed message.
111
111
  # This is overall a bit slower than using batch, but easier to configure.
112
- # - `batch` will yield batches from Ruby Kafka using `each_batch`, and commit/heartbeat at every consumed batch.
113
- # Due to implementation in Ruby Kafka, it should be noted that when configuring large batch sizes in combination with taking long time to consume messages,
114
- # your consumers might get kicked from the Kafka cluster for not sending a heartbeat within the expected interval.
115
- # Take this into consideration when determining your configuration. You can send heartbeats manually while
116
- # processing your messages if necessary.
112
+ # - `batch` will yield batches from Ruby Kafka using `each_batch`, and commit at every consumed batch. It will
113
+ # still heartbeat after every message if necessary (using the heartbeat_interval, below).
117
114
  # - `inline_batch` also uses `each_batch`, but will pass the entire batch to your handler instead
118
115
  # of one message at a time. To use this method, you should include Phobos::BatchHandler
119
116
  # instead of Phobos::Handler so that you can make use of the `consume_batch` etc. methods.
@@ -26,6 +26,7 @@ module Phobos
26
26
  message: message,
27
27
  listener_metadata: @listener_metadata
28
28
  ).execute
29
+ @listener.consumer.trigger_heartbeat
29
30
  end
30
31
  end
31
32
  end
@@ -10,7 +10,7 @@ module Phobos
10
10
  DELIVERY_OPTS = %w[batch message inline_batch].freeze
11
11
 
12
12
  attr_reader :group_id, :topic, :id
13
- attr_reader :handler_class, :encoding
13
+ attr_reader :handler_class, :encoding, :consumer
14
14
 
15
15
  # rubocop:disable Metrics/MethodLength
16
16
  def initialize(handler:, group_id:, topic:, min_bytes: nil, max_wait_time: nil,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phobos
4
- VERSION = '1.8.2'
4
+ VERSION = '1.8.3-beta1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phobos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3.pre.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Túlio Ornelas
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2019-11-11 00:00:00.000000000 Z
18
+ date: 2019-11-12 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -310,9 +310,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
310
310
  version: '2.3'
311
311
  required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  requirements:
313
- - - ">="
313
+ - - ">"
314
314
  - !ruby/object:Gem::Version
315
- version: '0'
315
+ version: 1.3.1
316
316
  requirements: []
317
317
  rubygems_version: 3.0.2
318
318
  signing_key: