Skip to main content

@backstage/backend-tasks

Home > @backstage/backend-tasks

Common distributed task management library for Backstage backends

Classes

ClassDescription
TaskSchedulerDeals with the scheduling of distributed tasks.

Functions

FunctionDescription
readTaskScheduleDefinitionFromConfig(config)Reads a TaskScheduleDefinition from a Config. Expects the config not to be the root config, but the config for the definition.

Interfaces

InterfaceDescription
PluginTaskSchedulerDeals with the scheduling of distributed tasks, for a given plugin.
TaskInvocationDefinitionOptions that apply to the invocation of a given task.
TaskRunnerA previously prepared task schedule, ready to be invoked.
TaskScheduleDefinitionOptions that control the scheduling of a task.
TaskScheduleDefinitionConfigConfig options for TaskScheduleDefinition that control the scheduling of a task.

Type Aliases

Type AliasDescription
HumanDurationHuman friendly durations object.
TaskDescriptorA semi-opaque type to describe an actively scheduled task.
TaskFunction

A function that can be called as a scheduled task.

It may optionally accept an abort signal argument. When the signal triggers, processing should abort and return as quickly as possible.