umbrellio-utils 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/umbrellio_utils/jobs.rb +2 -1
- data/lib/umbrellio_utils/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cd602271ee79c5ada9955b320e8b8f34a4eeaff2d6c5ceb44a4a3925f1c48c0
|
4
|
+
data.tar.gz: 0c0e05b3b6c0fdd8859f9c65ee075cda6d22d8d6c583e2adea45c65b48390b61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53a57309a2caf8fc51c184223401dd7b0ce285446ce1e633afe159dee813071cd37c1624c4735d2a7f263d113e5c65956b3da0be262d686201c99b12e483be74
|
7
|
+
data.tar.gz: 11b10e82bc896b39741a7e35ad2c7a0f46eb70fa83c88975994a7515cc4275efa4c7ee6635037d3bbe991f188a986fdd8d8bd2c23bf55217946cf671d2a775d0
|
data/Gemfile.lock
CHANGED
data/lib/umbrellio_utils/jobs.rb
CHANGED
@@ -67,7 +67,8 @@ module UmbrellioUtils::Jobs
|
|
67
67
|
weight_coef = capsule.weight / total_weight.to_f
|
68
68
|
concurrency = (max_concurrency * weight_coef).to_i
|
69
69
|
concurrency = 1 unless concurrency > 1
|
70
|
-
queues =
|
70
|
+
queues =
|
71
|
+
self.queues.select { |x| x.capsule == capsule.name }.map { |x| [x.name.to_s, x.weight] }
|
71
72
|
Entry.new(capsule.name, queues, concurrency)
|
72
73
|
end
|
73
74
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: umbrellio-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Umbrellio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: memery
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
rubygems_version: 3.5.
|
90
|
+
rubygems_version: 3.5.21
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: A set of utilities that speed up development
|