Integration Server 10.7 | Built-In Services Reference Guide | Scheduler Folder | Summary of Elements in this Folder | pub.scheduler:cancelTask
 
pub.scheduler:cancelTask
WmPublic. Removes a task from the Scheduler.
Input Parameters
taskID
String Identification number of the task to remove from the Scheduler.
If your server runs as part of a cluster of servers, and you have scheduled a task to run on all servers in the cluster, note the following before canceling a task:
*If you cancel a parent task, the task will be canceled on all servers in the cluster.
*If you cancel a child task, the task will be canceled only on the server on which the child task was scheduled to run.
For more information about parent and child tasks, see pub.scheduler:getTaskInfo or the chapter about managing services in webMethods Integration Server Administrator’s Guide.
Output Parameters
taskCancelled
String Indicates whether the task was successfully removed from the Scheduler. If the task was successfully removed from the Scheduler, taskCancelled contains true. If the task was not successfully removed, the server throws an exception and terminates the service.
Usage Notes
For information about the tasks on the Scheduler, run the pub.scheduler:getTaskIDs and pub.scheduler:getTaskInfo services.