Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added interval param #38236

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ switch (command) {
var lockTimeout = args.timeout || params.timeout || 600;
var lockInfo = 'Locked by incident #' + incidents[0].id + '.';
lockInfo += (args.info) ? ' Additional info: ' + args.info : '';
var pollingInterval = args.polling_interval || '20';
var pollingInterval = args.polling_interval || params.polling_interval || '20';

var guid = args.guid || guid();
var time = 0;
Expand Down
9 changes: 9 additions & 0 deletions Packs/DemistoLocking/Integrations/DemistoLock/DemistoLock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ configuration:
required: true
section: Connect
advanced: true
- display: Polling interval
name: polling_interval
type: 0
additionalinfo: Default polling interval value. Overridden by "polling_interval" if set in command `demisto-lock-get`
YuvHayun marked this conversation as resolved.
Show resolved Hide resolved
section: Connect
advanced: true
required: false
- display: Sync integration cache
name: sync
defaultvalue: "false"
Expand Down Expand Up @@ -66,3 +73,5 @@ marketplaces:
- xsoar
- marketplacev2
fromversion: 5.0.0
tests:
- No tests
16 changes: 8 additions & 8 deletions Packs/DemistoLocking/Integrations/DemistoLock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
<h2>Commands</h2>
<p>You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.</p>
<ol>
<li><a href="#h_27761285331529904975109">Get a lock: lock-get</a></li>
<li><a href="#h_742419847101529905253137">Show lock information: lock-info</a></li>
<li><a href="#h_439050099251529905261733">Release a lock: lock-release</a></li>
<li><a href="#h_329935457391529905267698">Release all locks: lock-release-all</a></li>
<li><a href="#h_27761285331529904975109">Get a lock: demisto-lock-get</a></li>
<li><a href="#h_742419847101529905253137">Show lock information: demisto-lock-info</a></li>
<li><a href="#h_439050099251529905261733">Release a lock: demisto-lock-release</a></li>
<li><a href="#h_329935457391529905267698">Release all locks: demisto-lock-release-all</a></li>
</ol>
<hr>
<h3 id="h_27761285331529904975109">Get a lock</h3>
<p>Gets a specific lock. If the lock doesn't exist, it creates one. If the lock is already in use, the command waits until the lock is released or until timeout is reached. If timeout is reached and the lock hasn't been released, the command fails to get the lock.</p>
<h5>Base Command</h5>
<p><code>lock-get</code></p>
<p><code>demisto-lock-get</code></p>
<h5>Input</h5>
<table style="height: 195px; width: 679px;" border="2" cellpadding="6">
<tbody>
Expand All @@ -40,7 +40,7 @@
<h3 id="h_742419847101529905253137">Show lock information</h3>
<p>Retreives information for a specified lock.</p>
<h5>Base Command</h5>
<p><code>lock-info</code></p>
<p><code>demisto-lock-info</code></p>
<h5>Input</h5>
<table style="height: 195px; width: 679px;" border="2" cellpadding="6">
<tbody>
Expand All @@ -58,7 +58,7 @@
<h3 id="h_439050099251529905261733">Release a lock</h3>
<p>Release a specified lock.</p>
<h5>Base Command</h5>
<p><code>lock-release</code></p>
<p><code>demisto-lock-release</code></p>
<h5>Input</h5>
<table style="height: 195px; width: 679px;" border="2" cellpadding="6">
<tbody>
Expand All @@ -76,7 +76,7 @@
<h3 id="h_329935457391529905267698">Release all locks</h3>
<p>Release a specified lock.</p>
<h5>Base Command</h5>
<p><code>lock-release-all</code></p>
<p><code>demisto-lock-release-all</code></p>
<h5>Input</h5>
<p>There is no input for this command.</p>
<h2>Troubleshooting</h2>
Expand Down
6 changes: 6 additions & 0 deletions Packs/DemistoLocking/ReleaseNotes/1_1_5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Demisto Lock

- Added the **Polling interval** integration parameter. Default polling interval value. Overridden by "polling_interval" if set in command `demisto-lock-get`.
YuvHayun marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion Packs/DemistoLocking/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Cortex Lock",
"description": "Locking mechanism that prevents concurrent execution of different tasks",
"support": "xsoar",
"currentVersion": "1.1.4",
"currentVersion": "1.1.5",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Loading