Skip to content

DecisionTask

Source code in docs_src/capo_swf/types/decision_task.py
class DecisionTask(TypedDict, closed=True):
    task_token: "capo_swf.types.task_token.TaskToken"
    """<p>The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.</p>"""
    started_event_id: "capo_swf.types.event_id.EventId"
    """<p>The ID of the <code>DecisionTaskStarted</code> event recorded in the history.</p>"""
    workflow_execution: "capo_swf.types.workflow_execution.WorkflowExecution"
    """<p>The workflow execution for which this decision task was created.</p>"""
    workflow_type: "capo_swf.types.workflow_type.WorkflowType"
    """<p>The type of the workflow execution for which this decision task was created.</p>"""
    events: "capo_swf.types.history_event_list.HistoryEventList"
    """<p>A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.</p>"""
    next_page_token: NotRequired["capo_swf.types.page_token.PageToken"]
    """<p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p>"""
    previous_started_event_id: "capo_swf.types.event_id.EventId"
    """<p>The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.</p>"""

events instance-attribute

A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

next_page_token instance-attribute

next_page_token: NotRequired[PageToken]

If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

The configured maximumPageSize determines how many results can be returned in a single call.

previous_started_event_id instance-attribute

previous_started_event_id: EventId

The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.

started_event_id instance-attribute

started_event_id: EventId

The ID of the DecisionTaskStarted event recorded in the history.

task_token instance-attribute

task_token: TaskToken

The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.

workflow_execution instance-attribute

workflow_execution: WorkflowExecution

The workflow execution for which this decision task was created.

workflow_type instance-attribute

workflow_type: WorkflowType

The type of the workflow execution for which this decision task was created.