Skip to content

StepFunctionsClient.get_activity_task

rboto-sfn==0.4.0 · Service index · Types

Model summary (excerpt): Used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds on to the request before responding is 60...

Install and imports

python -m pip install "rboto[sfn]==0.4.0"
from rboto import StepFunctionsClient
from rboto_sfn.types import (
    GetActivityTaskOutput,
)

Signature

async def get_activity_task(
    *,
    activity_arn: str,
    worker_name: str | None = None,
) -> GetActivityTaskOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
activity_arn Yes The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using CreateActivity .)
worker_name No You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history.

Output

GetActivityTaskOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
task_token str | None Always present —
input str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

GetActivityTaskOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_sfn.exceptions:

ActivityDoesNotExistError, ActivityWorkerLimitExceededError, InvalidArnError, KmsAccessDeniedError, KmsInvalidStateError, KmsThrottlingError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model