StopScheduledTask
This stops the scheduled task whose ID is given in the taskID argument.
python · Common Scripts
Details
| ID | StopScheduledTask |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | Utility |
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.
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()