parallel_minion 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parallel_minion/minion.rb +6 -1
- data/lib/parallel_minion/version.rb +1 -1
- data/test/test_db.sqlite3 +0 -0
- 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: 8c335c7e0f70e6146ac47496db7148e38f3bd65b
|
4
|
+
data.tar.gz: 69102288e568ff93f50179160ec4ea589289d1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3809ec290a32c2afb8661bc5c926ab9dc386006a5b519f790c5960d01cbdc785b34a902dbf7754b67b3b20584237fe0d51429bfb23457d331e7938e531a9423
|
7
|
+
data.tar.gz: b519e6ded5b402a48c37cc06ad5727fde6a61f670be000309629a471a292dc36fca1445ed13256828f98a2532a9e4f8f2c379ed8bf504fc5892b023b61814a0a
|
@@ -184,7 +184,12 @@ module ParallelMinion
|
|
184
184
|
# Return nil if Minion is still working and has time left to finish
|
185
185
|
if working?
|
186
186
|
ms = time_left
|
187
|
-
|
187
|
+
logger.benchmark_info("Waited for Minion to complete: #{@description}", min_duration: 0.01) do
|
188
|
+
if @thread.join(ms.nil? ? nil: ms / 1000).nil?
|
189
|
+
logger.warn("Timed out waiting for result from Minion: #{@description}")
|
190
|
+
return
|
191
|
+
end
|
192
|
+
end
|
188
193
|
end
|
189
194
|
|
190
195
|
# Return the exception, if any, otherwise the task result
|
data/test/test_db.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_minion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic_logger
|