summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-12-15 16:07:50 +0100
committerAndreas Maunz <andreas@maunz.de>2011-12-15 16:07:50 +0100
commitd83ff918a4f75259f61afd6e349dfbc00e1d83db (patch)
treee4b5382fb61ec51ef9c938df0d525eacbd2e512c
parent4f7bd6f55b187aed729b454484d09a60c5eca16c (diff)
Duration time doubles after each status check while waiting for task completion (maximum duration of 5 minutes).pc2
-rw-r--r--lib/task.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/task.rb b/lib/task.rb
index e6fa5e1..2a15751 100644
--- a/lib/task.rb
+++ b/lib/task.rb
@@ -252,6 +252,8 @@ module OpenTox
check_state
while self.running? or self.queued?
sleep dur
+ #LOGGER.debug "dv ---------------- dur: '#{dur}'"
+ dur = dur*2 unless dur>=300.0
load_metadata
# if another (sub)task is waiting for self, set progress accordingly
waiting_task.progress(@metadata[OT.percentageCompleted].to_f) if waiting_task