Skip to main content

TaskScheduleDefinition.frequency

Home > @backstage/backend-tasks > TaskScheduleDefinition > frequency

How often you want the task to run. The system does its best to avoid overlapping invocations.

Signature:

frequency: {
cron: string;
} | Duration | HumanDuration;

Remarks

This is the best effort value; under some circumstances there can be deviations. For example, if the task runtime is longer than the frequency and the timeout has not been given or not been exceeded yet, the next invocation of this task will be delayed until after the previous one finishes.

This is a required field.