Skip to content

ActivityTask

Source code in docs_src/capo_swf/types/activity_task.py
class ActivityTask(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>"""
    activity_id: "capo_swf.types.activity_id.ActivityId"
    """<p>The unique ID of the task.</p>"""
    started_event_id: "capo_swf.types.event_id.EventId"
    """<p>The ID of the <code>ActivityTaskStarted</code> event recorded in the history.</p>"""
    workflow_execution: "capo_swf.types.workflow_execution.WorkflowExecution"
    """<p>The workflow execution that started this activity task.</p>"""
    activity_type: "capo_swf.types.activity_type.ActivityType"
    """<p>The type of this activity task.</p>"""
    input: NotRequired["capo_swf.types.data.Data"]
    """<p>The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.</p>"""

activity_id instance-attribute

activity_id: ActivityId

The unique ID of the task.

activity_type instance-attribute

activity_type: ActivityType

The type of this activity task.

input instance-attribute

input: NotRequired[Data]

The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

started_event_id instance-attribute

started_event_id: EventId

The ID of the ActivityTaskStarted 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 that started this activity task.