Revision 654cf341
Added by Marc Dequènes over 13 years ago
- ID 654cf341f011417f375812a59d54e769fd73867e
lib/cyborghood/cyborg/dsl.rb | ||
---|---|---|
end
|
||
|
||
def _subtasks_finished?
|
||
subtasks_running = []
|
||
@subtasks.each do |subtask|
|
||
return false unless subtask.finished?
|
||
subtasks_running << subtask.name unless subtask.finished?
|
||
end
|
||
return true
|
||
|
||
logger.debug "Task '#{@name}': the following subtasks are still running: " +
|
||
subtasks_running.join(', ') unless subtasks_running.empty?
|
||
|
||
subtasks_running.empty?
|
||
end
|
||
|
||
def _check_finished
|
||
... | ... | |
# avoid race: no subtask will be run in this task now
|
||
@dsl_runing = false
|
||
|
||
logger.debug "Task '#{@name}': step finished"
|
||
|
||
# compute step result
|
||
@errors = {}
|
||
@results = {}
|
Also available in: Unified diff
[debug] Cyborg/DSL: more debug for subtasks