({{, StopScheduledTask[obj] 
deactivates the local or cloud scheduled task represented by obj.}})

OpenersNotesSection(Spacer1)Details

obj can be a (RefLink[ScheduledTaskObject, paclet:ref/ScheduledTaskObject]) expression or a (RefLink[CloudObject, paclet:ref/CloudObject]) containing a (RefLink[ScheduledTask, paclet:ref/ScheduledTask]) expression or (RefLink[DocumentGenerator, paclet:ref/DocumentGenerator]).

StopScheduledTask stops the task without removing it. The task may be reactivated using (RefLink[StartScheduledTask, paclet:ref/StartScheduledTask]).

StopScheduledTask returns a (RefLink[ScheduledTaskObject, paclet:ref/ScheduledTaskObject]) expression representing the stopped task.

StopScheduledTask has attribute (RefLink[Listable, paclet:ref/Listable]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Temporarily stop the task:

n=0;Dynamic[n]
t=CreateScheduledTask[n++,{1,20}];

StartScheduledTask[t];Pause[4];StopScheduledTask[t];n=0;StartScheduledTask[t];

RemoveScheduledTask[ScheduledTasks[]];

OpenersExampleSection1(Spacer1)Scope  (1)

Use (RefLink[StopScheduledTask, paclet:ref/StopScheduledTask]) to halt scheduled executions of a cloud scheduled task or document generator:

obj=CloudDeploy[ScheduledTask[TimeObject[],"Daily"]]

StopScheduledTask[obj]

ScheduledTaskActiveQ[obj]

Delete the task:

RemoveScheduledTask[obj]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[DocumentGenerator, paclet:ref/DocumentGenerator])}})}})