<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automation in Python using parallel processing in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-in-python-using-parallel-processing/m-p/573698#M2999</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are your system specs up to requirement? Please take a look at this doc to ensure you have the minimum recommended specs &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.12/Cortex-XSOAR-Installation-Guide/Installation-Overview" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.12/Cortex-XSOAR-Installation-Guide/Installation-Overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason for this is that every single task in XSOAR requires a worker and if there are no workers available you could see these sort of issues occurring. However, if this a concern with a specific task that is timing out I would recommend to create a support ticket to ensure that there isn't something else going on that needs to be addressed before any more complication gets introduced into the equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Furthermore, I do not recommend creating a script with multithreading capabilities or that works on multiple incidents at the same time as this would interrupt the flow of logical execution of each incident. XSOAR is not made for this sort of execution and troubleshooting it would not be supported by any of our OOTB debugging tools.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 20:43:24 GMT</pubDate>
    <dc:creator>Ivetto</dc:creator>
    <dc:date>2024-01-19T20:43:24Z</dc:date>
    <item>
      <title>Automation in Python using parallel processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-in-python-using-parallel-processing/m-p/569001#M2887</link>
      <description>&lt;P&gt;#Cortex XSOAR&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is there a way of creating parallel processing inside an automation in Python ?&lt;/P&gt;
&lt;P&gt;My goal is to execute the same function on multiple incidents (pausing and/or starting timers).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The thing is, sometimes we have a lot of incidents and the current automation using a mere "for x in y" can timeout.&lt;/P&gt;
&lt;P&gt;Obviously we could increase the timeout and/or retry on error but for the same number of incidents it can take from 3 to more than 10 minutes (we do not know the reason)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems we can import "Process" or "Threading". While Process does not seems to work, Threading does but without time improvement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for your help.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 08:04:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-in-python-using-parallel-processing/m-p/569001#M2887</guid>
      <dc:creator>sdes</dc:creator>
      <dc:date>2023-12-08T08:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Automation in Python using parallel processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-in-python-using-parallel-processing/m-p/573698#M2999</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are your system specs up to requirement? Please take a look at this doc to ensure you have the minimum recommended specs &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.12/Cortex-XSOAR-Installation-Guide/Installation-Overview" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.12/Cortex-XSOAR-Installation-Guide/Installation-Overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason for this is that every single task in XSOAR requires a worker and if there are no workers available you could see these sort of issues occurring. However, if this a concern with a specific task that is timing out I would recommend to create a support ticket to ensure that there isn't something else going on that needs to be addressed before any more complication gets introduced into the equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Furthermore, I do not recommend creating a script with multithreading capabilities or that works on multiple incidents at the same time as this would interrupt the flow of logical execution of each incident. XSOAR is not made for this sort of execution and troubleshooting it would not be supported by any of our OOTB debugging tools.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 20:43:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-in-python-using-parallel-processing/m-p/573698#M2999</guid>
      <dc:creator>Ivetto</dc:creator>
      <dc:date>2024-01-19T20:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automation in Python using parallel processing</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-in-python-using-parallel-processing/m-p/573842#M3006</link>
      <description>&lt;P&gt;For this you need to&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;demisto.executeCommand("getIncidents", {
'query':query_inc,
'fromdate': from_date,
'populateFields' : 'your fields'
})&lt;/LI-CODE&gt;
&lt;P&gt;Above command will get your required incidents information then get incident ids of it.&amp;nbsp;&lt;BR /&gt;Make your function and run it over your incident ids using setPlaybook.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 21:06:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-in-python-using-parallel-processing/m-p/573842#M3006</guid>
      <dc:creator>nitin.maurya</dc:creator>
      <dc:date>2024-01-21T21:06:24Z</dc:date>
    </item>
  </channel>
</rss>

