Skip to main content

PluginTaskScheduler

Home > @backstage/backend-tasks > PluginTaskScheduler

Deals with the scheduling of distributed tasks, for a given plugin.

Signature:

export interface PluginTaskScheduler 

Methods

MethodDescription
createScheduledTaskRunner(schedule)Creates a scheduled but dormant recurring task, ready to be launched at a later time.
getScheduledTasks()Returns all scheduled tasks registered to this scheduler.
scheduleTask(task)Schedules a task function for recurring runs.
triggerTask(id)

Manually triggers a task by ID.

If the task doesn't exist, a NotFoundError is thrown. If the task is currently running, a ConflictError is thrown.