server.web.routes.v2.cli.workflow

Routes for Workflow.

Attributes

logger

_cli_label_mapping

_reversed_cli_label_mapping

_cli_order

Functions

get_workflow_validation_status(→ Any)

Check if workflow is valid.

get_workflow_tasks(→ Any)

Get the tasks for a given workflow.

get_workflow_user_validation(→ Any)

Return all usernames associated with a given workflow_id's workflow runs.

get_workflow_run_for_workflow_reset(→ Any)

Last workflow_run_id associated with a given workflow_id started by the username.

reset_workflow(→ Any)

Update the workflow's status, all its tasks' statuses to 'G'.

get_workflow_status(→ Any)

Get the status of the workflow.

get_workflow_status_viz(→ Any)

Get the status of the workflows for GUI.

workflows_by_user_form(→ Any)

Fetch associated workflows and workflow runs by username.

task_details_by_wf_id(→ Any)

Fetch Task details associated with Workflow ID and TaskTemplate name.

wf_details_by_wf_id(→ Any)

Fetch name, args, dates, tool for a Workflow provided WF ID.

Module Contents

server.web.routes.v2.cli.workflow.logger[source]
server.web.routes.v2.cli.workflow._cli_label_mapping[source]
server.web.routes.v2.cli.workflow._reversed_cli_label_mapping[source]
server.web.routes.v2.cli.workflow._cli_order = ['PENDING', 'SCHEDULED', 'RUNNING', 'DONE', 'FATAL'][source]
server.web.routes.v2.cli.workflow.get_workflow_validation_status() Any[source]

Check if workflow is valid.

server.web.routes.v2.cli.workflow.get_workflow_tasks(workflow_id: int) Any[source]

Get the tasks for a given workflow.

server.web.routes.v2.cli.workflow.get_workflow_user_validation(workflow_id: int, username: str) Any[source]

Return all usernames associated with a given workflow_id’s workflow runs.

Used to validate permissions for a self-service request.

server.web.routes.v2.cli.workflow.get_workflow_run_for_workflow_reset(workflow_id: int, username: str) Any[source]

Last workflow_run_id associated with a given workflow_id started by the username.

Used to validate for workflow_reset:
  1. The last workflow_run of the current workflow must be in error state.

  2. This last workflow_run must have been started by the input username.

  3. This last workflow_run is in status ‘E’

server.web.routes.v2.cli.workflow.reset_workflow(workflow_id: int) Any[source]

Update the workflow’s status, all its tasks’ statuses to ‘G’.

server.web.routes.v2.cli.workflow.get_workflow_status() Any[source]

Get the status of the workflow.

server.web.routes.v2.cli.workflow.get_workflow_status_viz() Any[source]

Get the status of the workflows for GUI.

server.web.routes.v2.cli.workflow.workflows_by_user_form() Any[source]

Fetch associated workflows and workflow runs by username.

server.web.routes.v2.cli.workflow.task_details_by_wf_id(workflow_id: int) Any[source]

Fetch Task details associated with Workflow ID and TaskTemplate name.

server.web.routes.v2.cli.workflow.wf_details_by_wf_id(workflow_id: int) Any[source]

Fetch name, args, dates, tool for a Workflow provided WF ID.