Skip to main content

TaskScheduleDefinition

Home > @backstage/backend-tasks > TaskScheduleDefinition

Options that control the scheduling of a task.

Signature:

export interface TaskScheduleDefinition 

Properties

PropertyModifiersTypeDescription
frequency{ cron: string; } | Duration | HumanDurationHow often you want the task to run. The system does its best to avoid overlapping invocations.
initialDelay?Duration | 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.
timeoutDuration | 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).