class documentation

class SlotReserveContext(Protocol): (source)

View In Hierarchy

Context for reserving a slot from a CustomSlotSupplier.

Warning

Custom slot suppliers are currently experimental.

Class Variable is_sticky True iff this is a reservation for a sticky poll for a workflow task.
Class Variable slot_type The type of slot trying to be reserved. Always one of "workflow", "activity", or "local-activity".
Class Variable task_queue The name of the task queue for which this reservation request is associated.
Class Variable worker_build_id The build id of the worker that is requesting the reservation.
Class Variable worker_identity The identity of the worker that is requesting the reservation.
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.

worker_identity: str = (source)

The identity of the worker that is requesting the reservation.