Skip to main content

Schedule Task and Poll

This Playbook is part of the Schedule Task and Poll Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

This playbook will schedule a specified command and monitor for completion by looking for output in context. Make the playbook context shared globally if you have a command that returns to Context automatically, and you have a specific key to monitor. The key monitored must be a single field value and not an array.


This playbook uses the following sub-playbooks, integrations, and scripts.


  • Context Polling - Generic - Single Output
  • Context Polling - Generic - Array Output


This playbook does not use any integrations.


  • ScheduleCommand


This playbook does not use any commands.

Playbook Inputs#

NameDescriptionDefault ValueRequired
CommandCommand to Schedule!Print value="The command has executed"Required
CronIn the format
* * * * *
Min Hour Day(Month) Month Day(Week)

1 9 * * *
9:01 AM
- (server time) run !GetTime to see server time
Number of Times to RunHow many times to run before stopping (based on cron as well)Required
OutputContextValueProvide the Key of the value that will be output from the command to poll for completion. If specifying a context value of a command that already outputs to Context set context for sub-playbook to be shared globally.Optional
FrequencyToPollFrequency to run polling command to check context (in minutes)1Required
RegExValThe regex to check the field for. By default the regex contains .+, which matches anything other than None..+Required

Playbook Outputs#

SchedulingTask.schedResultsResults from command executedunknown