SchedulerService.triggerTask()
Home > @backstage/backend-plugin-api
> SchedulerService
> 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
Parameter | Type | Description |
---|---|---|
id | string | The task ID |
Returns:
Promise<void>