jober 0.3.39 → 0.3.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jober/threaded_manager.rb +6 -0
- data/lib/jober/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff283324c27e10f612643e11ef9862b7ff473f9d
|
4
|
+
data.tar.gz: 5966fa04616302e0fd54c6c5baaf5f7190a2a396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f358d487c0a575e9a438dd45b943a50d87dda46bc307b8f7a36cb106bc267a57866c7f618c433d4b5d1fd4a230d6439ff0f89c0fb28db7757556fd9bd3dab9e
|
7
|
+
data.tar.gz: 65837403bc0bfa824b7083abbdb99cb0d3562224882b8e391def41284b6bd7781c4041b03c717f4a546d886bfaf48ebead4a5c19a61f15a8c5b7dabc3638ee4e
|
@@ -26,6 +26,12 @@ class Jober::ThreadedManager
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
def set_objects(objects)
|
30
|
+
c = 0
|
31
|
+
objects.each { |o| o.instance_variable_set(:@unique_id, c); c += 1 }
|
32
|
+
@objects = objects
|
33
|
+
end
|
34
|
+
|
29
35
|
def run_loop
|
30
36
|
info { "run loop for #{@klasses.inspect}, in threads: #{@objects.length}" }
|
31
37
|
@threads = @objects.map { |obj| make_thread(obj) }
|
data/lib/jober/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jober
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "'Konstantin Makarchev'"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|