rage-rb 1.17.0 → 1.17.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/CHANGELOG.md +6 -0
- data/lib/rage/configuration.rb +2 -2
- data/lib/rage/deferred/queue.rb +1 -3
- data/lib/rage/version.rb +1 -1
- 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: aa6f9f4b7b4e1f422fd778585be775834fbe1e8e30c523e2cac096bab71d0046
|
4
|
+
data.tar.gz: 776090fd9779c994c95bf4ec368cb4562c544b8fc2d99043fa0c2cb5c91903af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5bbbfc62d7da523ae2f7e1d9b3be2acaa67072fd34fe464f23ab909324c46c707983e828c451969c46cb019f11c6ca0abc026d641b44c4df5340add13c830dd
|
7
|
+
data.tar.gz: 814cebf4625dc114d07de548981e0a593b78f2d55dd514ca9824d68296cfabd99f79e838b2580fdc07480ed906c8081585a38d6361f33bd64c3a06a070155bed
|
data/CHANGELOG.md
CHANGED
data/lib/rage/configuration.rb
CHANGED
@@ -164,7 +164,7 @@ require "erb"
|
|
164
164
|
# > Enables the backpressure for deferred tasks. The backpressure is used to limit the number of pending tasks in the queue. It accepts a hash with the following options:
|
165
165
|
# >
|
166
166
|
# > - `:high_water_mark` - the maximum number of pending tasks in the queue. Defaults to `1000`.
|
167
|
-
# > - `:low_water_mark` - the minimum number of pending tasks in the queue before the backpressure is released. Defaults to `
|
167
|
+
# > - `:low_water_mark` - the minimum number of pending tasks in the queue before the backpressure is released. Defaults to `high_water_mark * 0.8`.
|
168
168
|
# > - `:timeout` - the timeout for the backpressure in seconds. Defaults to `2`.
|
169
169
|
#
|
170
170
|
# > ```ruby
|
@@ -443,7 +443,7 @@ class Rage::Configuration
|
|
443
443
|
return
|
444
444
|
end
|
445
445
|
|
446
|
-
if
|
446
|
+
if config.except(:high_water_mark, :low_water_mark, :timeout).any?
|
447
447
|
raise ArgumentError, "unsupported backpressure options; supported keys are `:high_water_mark`, `:low_water_mark`, `:timeout`"
|
448
448
|
end
|
449
449
|
|
data/lib/rage/deferred/queue.rb
CHANGED
@@ -61,9 +61,7 @@ class Rage::Deferred::Queue
|
|
61
61
|
private
|
62
62
|
|
63
63
|
def apply_backpressure
|
64
|
-
if @backlog_size > @backpressure.high_water_mark
|
65
|
-
Fiber[:rage_backpressure_applied] = true
|
66
|
-
|
64
|
+
if @backlog_size > @backpressure.high_water_mark
|
67
65
|
i, target_backlog_size = 0, @backpressure.low_water_mark
|
68
66
|
while @backlog_size > target_backlog_size && i < @backpressure.timeout_iterations
|
69
67
|
sleep @backpressure.sleep_interval
|
data/lib/rage/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rage-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.17.
|
4
|
+
version: 1.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Samoilov
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-08-
|
10
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: thor
|