Table of Contents

Class SlotReserveContext

Namespace
Temporalio.Worker.Tuning
Assembly
Temporalio.dll

Context for reserving a slot from a CustomSlotSupplier.

public record SlotReserveContext : IEquatable<SlotReserveContext>
Inheritance
SlotReserveContext
Implements
Inherited Members

Remarks

WARNING: Custom slot suppliers are currently experimental.

Constructors

SlotReserveContext(SlotType, string, string, string, bool)

Context for reserving a slot from a CustomSlotSupplier.

public SlotReserveContext(SlotType SlotType, string TaskQueue, string WorkerIdentity, string WorkerBuildId, bool IsSticky)

Parameters

SlotType SlotType

The type of slot trying to be reserved.

TaskQueue string

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

WorkerIdentity string

The identity of the worker that is requesting the reservation.

WorkerBuildId string

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

IsSticky bool

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

Remarks

WARNING: Custom slot suppliers are currently experimental.

Properties

IsSticky

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

public bool IsSticky { get; init; }

Property Value

bool

SlotType

The type of slot trying to be reserved.

public SlotType SlotType { get; init; }

Property Value

SlotType

TaskQueue

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

public string TaskQueue { get; init; }

Property Value

string

WorkerBuildId

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

public string WorkerBuildId { get; init; }

Property Value

string

WorkerIdentity

The identity of the worker that is requesting the reservation.

public string WorkerIdentity { get; init; }

Property Value

string