Use this system procedure to cancel a task that is no longer needed.
The canceled task is reported as being in the Cancel Pending state until the agent completes any active runs of the task and confirms the canceled state through a synchronization of
the agent database.