work_shaper 0.1.2.7rc2 → 0.1.3.1rc1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 227baf03a85cc1e631a5f55ecb5832504501828bea7b87435ac00b6944b44942
4
- data.tar.gz: '003509444bbd9b6981c16adf4dfb7f8cab44c648715a26e4737aae3ad9bcc4c5'
3
+ metadata.gz: ffaaf1badd8ced4836dd5e1ae9f3b60f6f811e249fa617d5278b86cf667d3ba3
4
+ data.tar.gz: 065b69e44362a8c1bea9aedcbfaa70cd7b36ae6ee310cd780f33905b9036903b
5
5
  SHA512:
6
- metadata.gz: 926b0af454f94f5336161403278b7e4de3d6ba2399dc8692051ac7d1423750ca8b1a3f7614700cb2baffc5b1e07e420ea7d94c4b5e78b4b2f66d2687b7d8f83b
7
- data.tar.gz: 6a6b92cf53395c4713d680e8468217633b8f5aead88c145c4b42dd523bad59e3600396f5ee059b43d31eedca6c28013c3ba972d70ff65533b8c2eac56ea527fd
6
+ metadata.gz: 22e06e944e8f6fa7b062ac8842abad05414d653af9d7d8d68050469a40aa0b2e6bfa1c9dcc490f55e561da56afadb5c336093d7301af62fac8a68d299372bd06
7
+ data.tar.gz: 8c2187099bac137a99ed48e53a57c5235ea0b63227fc5238d780ec5e3adc668c57c9419020103e22cf0ad786cd10f8efb4e360c035008e18373aa9dae43c1ebb
@@ -35,7 +35,7 @@ module WorkShaper
35
35
 
36
36
  @heartbeat = Thread.new do
37
37
  while true
38
- report(detailed: true)
38
+ report(detailed: false)
39
39
  sleep heartbeat_period_sec
40
40
  end
41
41
  rescue => e
@@ -134,8 +134,8 @@ module WorkShaper
134
134
  end
135
135
 
136
136
  def offset_ack_unsafe(partition)
137
- completed = @completed_offsets[partition].sort
138
- received = @received_offsets[partition].sort
137
+ completed = @completed_offsets[partition].sort!
138
+ received = @received_offsets[partition].sort!
139
139
 
140
140
  offset = completed.first
141
141
  while received.any? && received.first == offset
@@ -158,9 +158,10 @@ module WorkShaper
158
158
  completed: @completed_offsets[partition].to_a[0..10].join(','),
159
159
  received: @received_offsets[partition].to_a[0..10].join(',')
160
160
  })
161
+ else
162
+ @last_ack[partition] = offset
161
163
  end
162
164
  end
163
- @last_ack[partition] = offset
164
165
 
165
166
  @total_acked += 1
166
167
  WorkShaper.logger.debug "@total_acked: #{@total_acked}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkShaper
4
- VERSION = "0.1.2.7rc2"
4
+ VERSION = "0.1.3.1rc1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: work_shaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.7rc2
4
+ version: 0.1.3.1rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Fernholz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-04 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby