示例#1
0
def run(
    workflow_json,
    workflow_parameters,
    operational_options,
    workflow_uuid,
    workflow_workspace,
    publisher,
    cache_enabled,
):
    """Run a serial workflow."""
    operational_options = operational_options or {}
    expanded_workflow_json = serial_load(None, workflow_json,
                                         workflow_parameters)
    steps_to_run = get_targeted_workflow_steps(
        expanded_workflow_json,
        operational_options.get("TARGET", None),
        operational_options.get("FROM", None),
    )
    workflow_json["steps"] = expanded_workflow_json["steps"] = steps_to_run
    publish_workflow_start(steps_to_run, workflow_uuid, publisher)

    for step_number, step in enumerate(steps_to_run):
        status = run_step(
            step_number,
            step,
            workflow_workspace,
            cache_enabled,
            expanded_workflow_json,
            workflow_json,
            publisher,
            workflow_uuid,
        )
        if status != "succeeded":
            break
示例#2
0
def run(workflow_json, workflow_parameters, operational_options, workflow_uuid,
        workflow_workspace, publisher, cache_enabled):
    """Run a serial workflow."""
    expanded_workflow_json = serial_load(None, workflow_json,
                                         workflow_parameters)

    publish_workflow_start(workflow_json, workflow_uuid, publisher)

    for step_number, step in enumerate(expanded_workflow_json['steps']):
        run_step(step_number, step, workflow_workspace, cache_enabled,
                 expanded_workflow_json, workflow_json, publisher,
                 workflow_uuid)
示例#3
0
def run(workflow_json, workflow_parameters, operational_options, workflow_uuid,
        workflow_workspace, publisher, cache_enabled):
    """Run a serial workflow."""
    operational_options = operational_options or {}
    expanded_workflow_json = serial_load(None, workflow_json,
                                         workflow_parameters)
    steps_to_run = get_targeted_workflow_steps(
        expanded_workflow_json, operational_options.get('TARGET'))
    workflow_json['steps'] = expanded_workflow_json['steps'] = steps_to_run
    publish_workflow_start(workflow_json, workflow_uuid, publisher)

    for step_number, step in enumerate(steps_to_run):
        run_step(step_number, step, workflow_workspace, cache_enabled,
                 expanded_workflow_json, workflow_json, publisher,
                 workflow_uuid)