client.workflows.get_executions_tasks

A method of the Workflows endpoint.

get_executions_tasks(id: int, execution_id: int, task_name: str) Response

Get a task of a workflow execution

API URL: GET /workflows/{id}/executions/{execution_id}/tasks/{task_name}

import civis
client = civis.APIClient()
response = client.workflows.get_executions_tasks(...)
Parameters:
idint

The ID for the workflow.

execution_idint

The ID for the workflow execution.

task_namestr

The URL-encoded name of the task.

Returns:
civis.Response
  • namestr

    The name of the task.

  • mistral_statestr

    The state of this task. One of idle, waiting, running, delayed, success, error, or cancelled

  • mistral_state_infostr

    Extra info associated with the state of the task.

  • runsList[civis.Response]

    The runs associated with this task, in descending order by id.

    • idint

      The ID of the run.

    • job_idint

      The ID of the job associated with the run.

    • my_permission_levelstr

      Your permission level on the job. One of “read”, “write”, “manage”, or “nil”.

    • statestr

      The state of the run.

    • created_atstr (time)

      The time that the run was queued.

    • started_atstr (time)

      The time that the run started.

    • finished_atstr (time)

      The time that the run completed.

  • executionsList[civis.Response]

    The executions run by this task, in descending order by id.

    • idint

      The ID of the execution.

    • workflow_idint

      The ID of the workflow associated with the execution.

    • my_permission_levelstr

      Your permission level on the workflow. One of “read”, “write”, “manage”, or “nil”.

    • statestr

      The state of this workflow execution.

    • created_atstr (time)

      The time this execution was created.

    • started_atstr (time)

      The time this execution started.

    • finished_atstr (time)

      The time this execution finished.