karafka 2.1.3 → 2.1.4

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: 6e65b59d084427bababbe797da6aa39ce76d04ceb235bdc43d5f85649e030c0f
4
- data.tar.gz: a0599693bea1a05f2066180492cdb5017ac609b118195c64983990550f8e7e98
3
+ metadata.gz: e54dc80fd5a3a93857fd6a3a175030f7cb2eee1f77668d6936b705b0789c4228
4
+ data.tar.gz: e7f3b02811432987048bc599c2c4a6f0444fe13d98ca4aa8e87cebd5aaa8037a
5
5
  SHA512:
6
- metadata.gz: 9ef5dfbce059aedad3c24911a02e05068122d78d6e54f183c9b1155f1bb6b9f80cfc49cc7cdcc678ea427f86b1832f161aa7c9a411afbb2e6d83fc87bc67ffbe
7
- data.tar.gz: 43f0a4ae3c9247df214d6fccd7ee9735a975b45cb0db49dd9490d675abe5d03ffeddbafc658d3953a39243304fd7754a265d60450d941f5a19dfa3cbe3716ac9
6
+ metadata.gz: 871ed7a55421041b1b232c47b3da0f625b8f2114c00057daf883223d3da4dc16637c9f0b4714cebe4a5f33249beac9bd7abbe15ec122f5b1a45a3c953dcb1465
7
+ data.tar.gz: ac2cc50c3277bd0bac7e3a2af40cc6d5a9c3aa92fc8cc3d2b12b8645329d269d0ed0d80c462d2fa6a03a677213e84802a1dfe8fdc1c494348b1a8b4fd9ef8459
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 2.1.4 (2023-06-06)
4
+ - [Fix] `processing_lag` and `consumption_lag` on empty batch fail on shutdown usage (#1475)
5
+
3
6
  ## 2.1.3 (2023-05-29)
4
7
  - [Maintenance] Add linter to ensure, that all integration specs end with `_spec.rb`.
5
8
  - [Fix] Fix `#retrying?` helper result value (Aerdayne).
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (2.1.3)
4
+ karafka (2.1.4)
5
5
  karafka-core (>= 2.0.13, < 3.0.0)
6
6
  thor (>= 0.20)
7
7
  waterdrop (>= 2.5.3, < 3.0.0)
@@ -20,14 +20,21 @@ module Karafka
20
20
  ) do
21
21
  # This lag describes how long did it take for a message to be consumed from the moment it was
22
22
  # created
23
+ #
24
+ #
25
+ # @return [Integer] number of milliseconds
26
+ # @note In case of usage in workless flows, this value will be set to -1
23
27
  def consumption_lag
24
- time_distance_in_ms(processed_at, created_at)
28
+ processed_at ? time_distance_in_ms(processed_at, created_at) : -1
25
29
  end
26
30
 
27
31
  # This lag describes how long did a batch have to wait before it was picked up by one of the
28
32
  # workers
33
+ #
34
+ # @return [Integer] number of milliseconds
35
+ # @note In case of usage in workless flows, this value will be set to -1
29
36
  def processing_lag
30
- time_distance_in_ms(processed_at, scheduled_at)
37
+ processed_at ? time_distance_in_ms(processed_at, scheduled_at) : -1
31
38
  end
32
39
 
33
40
  private
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '2.1.3'
6
+ VERSION = '2.1.4'
7
7
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  Qf04B9ceLUaC4fPVEz10FyobjaFoY4i32xRto3XnrzeAgfEe4swLq8bQsR3w/EF3
36
36
  MGU0FeSV2Yj7Xc2x/7BzLK8xQn5l7Yy75iPF+KP3vVmDHnNl
37
37
  -----END CERTIFICATE-----
38
- date: 2023-05-29 00:00:00.000000000 Z
38
+ date: 2023-06-06 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka-core
metadata.gz.sig CHANGED
Binary file