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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 015fc75df1c7ac6bef383367673ce73410cc9ce7
4
- data.tar.gz: 097216df7c146af993520d6625d636c29f78be03
3
+ metadata.gz: 8c335c7e0f70e6146ac47496db7148e38f3bd65b
4
+ data.tar.gz: 69102288e568ff93f50179160ec4ea589289d1a0
5
5
  SHA512:
6
- metadata.gz: 5e81bfe325e983cc66d0bb723bbcf2306b13f5c31b4fcd56453d4265ec28b226bb27a9653683d3699ff50e59db021b4f3afd95703b0a0074d84c1e1f2b1cdea7
7
- data.tar.gz: 953bb13a39536b072874c1cfb22b42eace186d4ffa955605d626f586b946d82d5560896a5e6915f0e07594332770946c78ce87406ac55b1a1ba5cd529f5eeac6
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
- return if @thread.join(ms.nil? ? nil: ms / 1000).nil?
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
@@ -1,3 +1,3 @@
1
1
  module ParallelMinion #:nodoc
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic_logger