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.