class documentation

class ActivitySerializationContext(SerializationContext): (source)

View In Hierarchy

Serialization context for activities.

See SerializationContext for more details.

Class Variable activity_id Activity ID. Optional if this is an activity started from a workflow.
Class Variable activity_task_queue Activity task queue.
Class Variable activity_type Activity type.
Class Variable is_local Whether the activity is a local activity started from a workflow.
Class Variable namespace Workflow/activity namespace.
Class Variable workflow_id Workflow ID. Only set if this is an activity started from a workflow.
Class Variable workflow_type Workflow type if this is an activity started from a workflow.
activity_id: str | None = (source)

Activity ID. Optional if this is an activity started from a workflow.

activity_task_queue: str | None = (source)

Activity task queue.

Deprecated since version This: value may not be set in some bidirectional situations, it should not be relied on.
activity_type: str | None = (source)

Activity type.

Deprecated since version This: value may not be set in some bidirectional situations, it should not be relied on.
is_local: bool = (source)

Whether the activity is a local activity started from a workflow.

namespace: str = (source)

Workflow/activity namespace.

workflow_id: str | None = (source)

Workflow ID. Only set if this is an activity started from a workflow.

Note, when creating/describing schedules, this may be the workflow ID prefix as configured, not the final workflow ID when the workflow is created by the schedule.

workflow_type: str | None = (source)

Workflow type if this is an activity started from a workflow.