StopScheduledTask
This stops the scheduled task whose ID is given in the taskID argument.
- Type
- python
- Pack
- CommonScripts
Source
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def stop_scheduled_task(args):
return demisto.executeCommand("scheduleEntry", {"id": args["taskID"], "cancel": "cancel"})
def main():
res = stop_scheduled_task(demisto.args())
return_results(res)
if __name__ in ["__builtin__", "builtins"]:
main()
README
Stops the scheduled task whose ID is given in the taskID argument.
Script Data
| Name | Description |
|---|---|
| Script Type | python |
| Tags | Utility |
Inputs
| Argument Name | Description |
|---|---|
| taskID | The ID of the schedule to stop. |
Outputs
There are no outputs for this script.