Skip to main content

TaskScheduleDefinitionConfig

Home > @backstage/backend-tasks > TaskScheduleDefinitionConfig

Config options for TaskScheduleDefinition that control the scheduling of a task.

Signature:

export interface TaskScheduleDefinitionConfig 

Properties

PropertyModifiersTypeDescription
frequency{ cron: string; } | string | HumanDurationHow often you want the task to run. The system does its best to avoid overlapping invocations.
initialDelay?string | HumanDuration(Optional) The amount of time that should pass before the first invocation happens.
scope?'global' | 'local'(Optional) Sets the scope of concurrency control / locking to apply for invocations of this task.
timeoutstring | HumanDurationThe maximum amount of time that a single task invocation can take, before it's considered timed out and gets "released" such that a new invocation is permitted to take place (possibly, then, on a different worker).