Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/worker/src/worker-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ export interface WorkerOptions {
*
* Mutually exclusive with the {@link maxConcurrentWorkflowTaskExecutions}, {@link
* maxConcurrentActivityTaskExecutions}, and {@link maxConcurrentLocalActivityExecutions} options.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
tuner?: WorkerTuner;

Expand Down
26 changes: 0 additions & 26 deletions packages/worker/src/worker-tuner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ import { Logger, WorkerDeploymentVersion } from '@temporalio/common';
* A worker tuner allows the customization of the performance characteristics of workers by
* controlling how "slots" are handed out for different task types. In order to poll for and then
* run tasks, a slot must first be reserved by the {@link SlotSupplier} returned by the tuner.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export type WorkerTuner = ResourceBasedTuner | TunerHolder;

/**
* This tuner allows for different slot suppliers for different slot types.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface TunerHolder {
workflowTaskSlotSupplier: SlotSupplier<WorkflowSlotInfo>;
Expand All @@ -25,8 +21,6 @@ export interface TunerHolder {

/**
* Controls how slots are handed out for a specific task type.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export type SlotSupplier<SI extends SlotInfo> =
| ResourceBasedSlotsForType
Expand All @@ -38,8 +32,6 @@ export type SlotSupplier<SI extends SlotInfo> =
/**
* This tuner attempts to maintain certain levels of resource usage when under load. You do not
* need more than one instance of this when using it for multiple slot types.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface ResourceBasedTuner {
/**
Expand Down Expand Up @@ -70,8 +62,6 @@ export interface ResourceBasedTuner {

/**
* Options for a {@link ResourceBasedTuner} to control target resource usage
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface ResourceBasedTunerOptions {
// A value between 0 and 1 that represents the target (system) memory usage. It's not recommended
Expand All @@ -85,8 +75,6 @@ export interface ResourceBasedTunerOptions {

/**
* Options for a specific slot type within a {@link ResourceBasedSlotsForType}
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface ResourceBasedSlotOptions {
/**
Expand All @@ -108,8 +96,6 @@ export interface ResourceBasedSlotOptions {

/**
* Resource based slot supplier options for a specific kind of slot.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export type ResourceBasedSlotsForType = ResourceBasedSlotOptions & {
type: 'resource-based';
Expand All @@ -120,8 +106,6 @@ export type ResourceBasedSlotsForType = ResourceBasedSlotOptions & {

/**
* A fixed-size slot supplier that will never issue more than a fixed number of slots.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface FixedSizeSlotSupplier {
type: 'fixed-size';
Expand All @@ -131,8 +115,6 @@ export interface FixedSizeSlotSupplier {

/**
* The interface can be implemented to provide custom slot supplier behavior.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface CustomSlotSupplier<SI extends SlotInfo> {
type: 'custom';
Expand Down Expand Up @@ -216,16 +198,12 @@ export interface NexusSlotInfo {

/**
* A permit to use a slot.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SlotPermit {}

/**
* Context for reserving a slot.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface SlotReserveContext {
/**
Expand Down Expand Up @@ -265,8 +243,6 @@ export interface SlotReserveContext {

/**
* Context for marking a slot as used.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface SlotMarkUsedContext<SI extends SlotInfo> {
/**
Expand All @@ -282,8 +258,6 @@ export interface SlotMarkUsedContext<SI extends SlotInfo> {

/**
* Context for releasing a slot.
*
* @experimental Worker Tuner is an experimental feature and may be subject to change.
*/
export interface SlotReleaseContext<SI extends SlotInfo> {
/**
Expand Down
Loading