This statement allows to execute an operation on a task with the give task ID. You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
Set Task task_id [pause | cancel | resume | restart]
pause : Pauses the running task if task support Pausing behavior.
cancel : Cancels the running task if task support Cancellation behavior.
resume : Resumes the currently Pauses task.
restart : Re-reruns as completed/cancelled/failed task if task supports Re-running behavior.