temporalio.worker.SlotReserveContext
class documentation

class SlotReserveContext(Protocol): (source)

View In Hierarchy

Context for reserving a slot from a CustomSlotSupplier.

is_sticky: bool = (source)

True iff this is a reservation for a sticky poll for a workflow task.

slot_type: Literal['workflow', 'activity', 'local-activity'] = (source)

The type of slot trying to be reserved. Always one of "workflow", "activity", or "local-activity".

task_queue: str = (source)

The name of the task queue for which this reservation request is associated.

worker_build_id: str = (source)

The build id of the worker that is requesting the reservation.

Warning

Deprecated, use worker_deployment_version instead.

worker_deployment_version: WorkerDeploymentVersion | None = (source)

The deployment version of the worker that is requesting the reservation, if any.

worker_identity: str = (source)

The identity of the worker that is requesting the reservation.