Pausing and Canceling Tasks
Pause and Resume
After most tasks are created, they are put onto the task schedule. The exception to this is on demand tasks, which are not put on the schedule until you click the "run now" link. After a task has been added to the schedule, you can pause and resume the task. The state of the task (scheduled, running, waiting) and the scheduling configuration affect how the task is paused and resumed.
Task configuration | Pause action | Resume Action |
---|
Task is currently running or waiting | System will attempt to cancel outstanding calls to remote servers. | System will run the task again against any servers that were outstanding when the task was paused. |
Task is scheduled once at a specific date and time | The task will be temporarily taken off the schedule. | If the specified time has not yet arrived, the task will be put back onto the schedule at the original time. If the specified time has already passed, the task will execute immediately upon resume. |
Task is scheduled once after a specified delay | The task will be temporarily taken off the schedule. | The task will be put back onto the schedule at the original calculated time. For example, if the delay is set to 2 hours, and the task is paused for 1 hour, the task will fire in 1 hour after resume. If the delay period has already passed, it will fire immediately after resume. |
Task is on a recurring schedule | All future iterations of the task will be temporarily taken off the schedule. | The task will not fire if task iterations have been missed when the task was paused. The task will return to firing on its normal schedule. |

Cancel
Scheduled one-shot tasks can be cancelled at any time before the task starts. Scheduled one-shot tasks include tasks that are scheduled to fire once after a delay or fire at a specific time. Running tasks can also be cancelled, but there are no guarantees about how much of the task is processed at the time of cancel. Keep in mind that cancelling a task will cause also delete the task at the same time, and it cannot be retrieved after cancel.