@@ -6,15 +6,11 @@ import { Logger, WorkerDeploymentVersion } from '@temporalio/common';
66 * A worker tuner allows the customization of the performance characteristics of workers by
77 * controlling how "slots" are handed out for different task types. In order to poll for and then
88 * run tasks, a slot must first be reserved by the {@link SlotSupplier} returned by the tuner.
9- *
10- * @experimental Worker Tuner is an experimental feature and may be subject to change.
119 */
1210export type WorkerTuner = ResourceBasedTuner | TunerHolder ;
1311
1412/**
1513 * This tuner allows for different slot suppliers for different slot types.
16- *
17- * @experimental Worker Tuner is an experimental feature and may be subject to change.
1814 */
1915export interface TunerHolder {
2016 workflowTaskSlotSupplier : SlotSupplier < WorkflowSlotInfo > ;
@@ -25,8 +21,6 @@ export interface TunerHolder {
2521
2622/**
2723 * Controls how slots are handed out for a specific task type.
28- *
29- * @experimental Worker Tuner is an experimental feature and may be subject to change.
3024 */
3125export type SlotSupplier < SI extends SlotInfo > =
3226 | ResourceBasedSlotsForType
@@ -38,8 +32,6 @@ export type SlotSupplier<SI extends SlotInfo> =
3832/**
3933 * This tuner attempts to maintain certain levels of resource usage when under load. You do not
4034 * need more than one instance of this when using it for multiple slot types.
41- *
42- * @experimental Worker Tuner is an experimental feature and may be subject to change.
4335 */
4436export interface ResourceBasedTuner {
4537 /**
@@ -70,8 +62,6 @@ export interface ResourceBasedTuner {
7062
7163/**
7264 * Options for a {@link ResourceBasedTuner} to control target resource usage
73- *
74- * @experimental Worker Tuner is an experimental feature and may be subject to change.
7565 */
7666export interface ResourceBasedTunerOptions {
7767 // A value between 0 and 1 that represents the target (system) memory usage. It's not recommended
@@ -85,8 +75,6 @@ export interface ResourceBasedTunerOptions {
8575
8676/**
8777 * Options for a specific slot type within a {@link ResourceBasedSlotsForType}
88- *
89- * @experimental Worker Tuner is an experimental feature and may be subject to change.
9078 */
9179export interface ResourceBasedSlotOptions {
9280 /**
@@ -108,8 +96,6 @@ export interface ResourceBasedSlotOptions {
10896
10997/**
11098 * Resource based slot supplier options for a specific kind of slot.
111- *
112- * @experimental Worker Tuner is an experimental feature and may be subject to change.
11399 */
114100export type ResourceBasedSlotsForType = ResourceBasedSlotOptions & {
115101 type : 'resource-based' ;
@@ -120,8 +106,6 @@ export type ResourceBasedSlotsForType = ResourceBasedSlotOptions & {
120106
121107/**
122108 * A fixed-size slot supplier that will never issue more than a fixed number of slots.
123- *
124- * @experimental Worker Tuner is an experimental feature and may be subject to change.
125109 */
126110export interface FixedSizeSlotSupplier {
127111 type : 'fixed-size' ;
@@ -131,8 +115,6 @@ export interface FixedSizeSlotSupplier {
131115
132116/**
133117 * The interface can be implemented to provide custom slot supplier behavior.
134- *
135- * @experimental Worker Tuner is an experimental feature and may be subject to change.
136118 */
137119export interface CustomSlotSupplier < SI extends SlotInfo > {
138120 type : 'custom' ;
@@ -216,16 +198,12 @@ export interface NexusSlotInfo {
216198
217199/**
218200 * A permit to use a slot.
219- *
220- * @experimental Worker Tuner is an experimental feature and may be subject to change.
221201 */
222202// eslint-disable-next-line @typescript-eslint/no-empty-object-type
223203export interface SlotPermit { }
224204
225205/**
226206 * Context for reserving a slot.
227- *
228- * @experimental Worker Tuner is an experimental feature and may be subject to change.
229207 */
230208export interface SlotReserveContext {
231209 /**
@@ -265,8 +243,6 @@ export interface SlotReserveContext {
265243
266244/**
267245 * Context for marking a slot as used.
268- *
269- * @experimental Worker Tuner is an experimental feature and may be subject to change.
270246 */
271247export interface SlotMarkUsedContext < SI extends SlotInfo > {
272248 /**
@@ -282,8 +258,6 @@ export interface SlotMarkUsedContext<SI extends SlotInfo> {
282258
283259/**
284260 * Context for releasing a slot.
285- *
286- * @experimental Worker Tuner is an experimental feature and may be subject to change.
287261 */
288262export interface SlotReleaseContext < SI extends SlotInfo > {
289263 /**
0 commit comments