Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ciac 6453/improve generic polling - hotfix (#26372)
* Fixed script issues * updated rn * Updated rn * Apply suggestions from code review Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com> * updated script min version * fix pre-commit issues * updated the script to support only XSOAR * Bump pack from version CommonScripts to 1.11.69. * update to use endTime instead of using the context * updated rn * Bump pack from version CommonScripts to 1.11.70. * updated rn * Update Packs/CommonScripts/ReleaseNotes/1_11_70.md * updated rn and readme * Updated rn * updated rn * updated script * Apply suggestions from code review Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com> * Update Packs/CommonScripts/Scripts/ScheduleGenericPolling/ScheduleGenericPolling.py Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com> * Bump pack from version CommonScripts to 1.11.72. * Bump pack from version CommonScripts to 1.11.73. * updated script * updated rn * updated docker image * updated script * updated scripts --------- Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com> Co-authored-by: Content Bot <bot@demisto.com>
- Loading branch information
1 parent
5d0671f
commit 6f65a3e
Showing
9 changed files
with
215 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
#### Scripts | ||
|
||
##### ScheduleCommand | ||
|
||
- Added the *scheduledEntryGuid* arguments to support the new ***GenericPolling*** playbook mechanism which improves the playbook performance. | ||
|
||
##### GenericPollingScheduledTask | ||
|
||
- Added the *scheduledEntryGuid* arguments to support the new ***GenericPolling*** playbook mechanism which improves the playbook performance. | ||
|
||
##### ScheduleGenericPolling | ||
- Updated the Docker image to: *demisto/python3:3.10.11.57890*. | ||
|
||
- Added the *scheduledEntryGuid* arguments to support the new ***GenericPolling*** playbook mechanism which improves the playbook performance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 17 additions & 12 deletions
29
Packs/CommonScripts/Scripts/GenericPollingScheduledTask/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
Runs the polling command repeatedly and completes a blocking manual task when polling is done. | ||
Runs the polling command repeatedly, completes a blocking manual task when polling is done. | ||
|
||
## Script Data | ||
|
||
--- | ||
|
||
| **Name** | **Description** | | ||
| --- | --- | | ||
| Script Type | javascript | | ||
| Tags | - | | ||
|
||
| Cortex XSOAR Version | 5.0.0 | | ||
|
||
## Inputs | ||
|
||
--- | ||
|
||
| **Argument Name** | **Description** | | ||
| --- | --- | | ||
| ids | The list of IDs to poll. | | ||
| pendingIds | The IDs with pending status. | | ||
| pollingCommand | The name of the polling command to run. | | ||
| pollingCommandArgName | The name of the argument of the polling command. | | ||
| interval | The frequency to poll. How often the polling command should run (in minutes). | | ||
| timeout | The amount of time to poll before declaring a timeout and resuming the playbook (in minutes). | | ||
| ids | List of IDs to poll | | ||
| pendingIds | IDs with pending status | | ||
| pollingCommand | Name of the polling command to run | | ||
| pollingCommandArgName | Name of the argument of the polling command | | ||
| interval | Polling frequency - how often the polling command should run \(minutes\) | | ||
| timeout | How much time to poll before declaring a timeout and resuming the playbook \(minutes\) | | ||
| playbookId | The ID of the playbook that contains the manual task which will be completed once the polling is done. | | ||
| tag | The tag of the blocking manual task ("Wait For Polling Task To Finish"). | | ||
| additionalPollingCommandArgNames | The names of the additional arguments for the polling command. For example, arg1,arg2,... | | ||
| additionalPollingCommandArgValues | The commas-separated arguments values of the polling command. | | ||
| tag | The tag of the blocking manual task \("Wait For Polling Task To Finish"\) | | ||
| additionalPollingCommandArgNames | Names of additional arguments for the polling command \(e.g. arg1,arg2,...\) | | ||
| additionalPollingCommandArgValues | Commas separated arguments values of the polling command | | ||
| scheduledEntryGuid | The GUID of the scheduled entry that runs the polling command. | | ||
| endTime | The time to end the polling. | | ||
|
||
## Outputs | ||
|
||
--- | ||
There are no outputs for this script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
Schedules a command to run inside the War Room at a future time. Can be once or reoccurring. | ||
|
||
## Script Data | ||
|
||
--- | ||
|
||
| **Name** | **Description** | | ||
| --- | --- | | ||
| Script Type | javascript | | ||
| Tags | Utility | | ||
| Cortex XSOAR Version | 5.0.0 | | ||
|
||
## Used In | ||
|
||
--- | ||
This script is used in the following playbooks and scripts. | ||
|
||
* Schedule Task and Poll | ||
|
||
## Inputs | ||
|
||
--- | ||
|
||
| **Argument Name** | **Description** | | ||
| --- | --- | | ||
| command | The command to schedule. | | ||
| cron | The scheduled time to run. | | ||
| endDate | When should the schedule end. This is relevant only if "times" are not provided (Optional). The format is "Mon, 02 Jan 2006 15:04:05 MST". | | ||
| times | The number of times to run (Optional). | | ||
| command | The command to schedule | | ||
| cron | The scheduled time to run | | ||
| endDate | When should we end the schedule. Will be only relevant if times is not provided. Optional. Format is 'Mon, 02 Jan 2006 15:04:05 MST' | | ||
| times | The number of times to run. Optional. | | ||
| scheduledEntryGuid | The GUID of the scheduled entry that runs the polling command. | | ||
|
||
## Outputs | ||
|
||
--- | ||
There are no outputs for this script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.