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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/karafka/messages/batch_metadata.rb +9 -2
- data/lib/karafka/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e54dc80fd5a3a93857fd6a3a175030f7cb2eee1f77668d6936b705b0789c4228
|
4
|
+
data.tar.gz: e7f3b02811432987048bc599c2c4a6f0444fe13d98ca4aa8e87cebd5aaa8037a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
data/lib/karafka/version.rb
CHANGED
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.
|
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-
|
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
|