def start_output_generation(workflow): if app.config['mode'] not in ('processor', 'full'): raise ApiException("Only possible when running in 'processor' or" " 'full' mode.", 503) workflow._update_status(step='output', step_progress=None) from tasks import output_workflow output_workflow(workflow.id, app.config['base_path']) return 'OK'
def start_output_generation(workflow): check_processing_allowed() workflow._update_status(step='output', step_progress=None) from tasks import output_workflow output_workflow(workflow.id, app.config['base_path']) return 'OK'
def start_output_generation(workflow): """ Enqueue the specified workflow for output generation. """ workflow._update_status(step='output', step_progress=None) from tasks import output_workflow output_workflow(workflow.id, app.config['base_path']) return 'OK'