Skip to main content

PluginTaskScheduler.triggerTask()

Home > @backstage/backend-tasks > PluginTaskScheduler > triggerTask

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.

Signature:

triggerTask(id: string): Promise<void>;

Parameters

ParameterTypeDescription
idstringThe task ID

Returns:

Promise<void>