diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-12-15 16:07:50 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-12-15 16:07:50 +0100 |
commit | d83ff918a4f75259f61afd6e349dfbc00e1d83db (patch) | |
tree | e4b5382fb61ec51ef9c938df0d525eacbd2e512c | |
parent | 4f7bd6f55b187aed729b454484d09a60c5eca16c (diff) |
Duration time doubles after each status check while waiting for task completion (maximum duration of 5 minutes).pc2
-rw-r--r-- | lib/task.rb | 2 |
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 |