Function cancelTask
Parameters
- taskIds: number[]
Id or ids of the tasks that must be cancelled
Returns Promise<{ tasksCancelled(): Promise<void> }>
- Promise that resolves when the cancellation has written to the database. The promise returned by
tasksCancelled()
will be resolved when all running tasks have been stopped.
Remarks
Schedules cancellation of the specified managed tasks. When the promise returned by this function resolves, the changes have been written to the database. If any of the tasks are running, they will be stopped after the commit. After all running tasks have been stopped, the
tasksCancelled
promise returned by this function will be fulfilled.- taskIds: number[]
Cancel managed tasks.