TinyTick logoTinyTick

TaskRunConfigWithDefaults

The TaskRunConfigWithDefaults type represents the full configuration for a task run, including any defaults of those you yourself have not provided.

{
  maxDuration: DurationMs;
  maxRetries: number;
  retryDelay: DurationMs | string;
  repeatDelay: DurationMs | null;
}
TypeDescription
maxDurationDurationMs

The maximum time in milliseconds that a task can run for before a signal is sent to abort it, defaulting to 1000.

maxRetriesnumber

The number of times that a task can will be retried if it fails or times out, defaulting to 0.

retryDelayDurationMs | string

The duration between task run retries in milliseconds, defaulting to 1000. This can also be a string of comma delimited numbers if you want to implement a back-off strategy, for example.

repeatDelayDurationMs | null

An duration between task run repeats in milliseconds, if they are successful. This defaults to null, meaning the task runs do not repeat.

This has properties which let you indicate the duration of task runs and their retry behaviors, for example.

Since

v1.0.0