<?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 NSO actions[PYTHON] are single threaded in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-actions-python-are-single-threaded/m-p/3472791#M744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During testing found out that NSO actions written in python are single threaded.&lt;/P&gt;&lt;P&gt;Same action invoked via mulitple CLIs/REST are invoked sequentially.&lt;/P&gt;&lt;P&gt;Understand that CDB is one reason to make it sequential, but we could write actions that do read only operations, so no point of making them single threaded &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Question:&amp;nbsp; Is it configurable in NSO properties or somehow to change this behaviour? Any other workaround?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In my use case, i am using action which is being invoked by external portal to get some data from NSO. Internally action uses multiple X-path queries and computation to produce final consumable data by portal, hence need of action. But multiple users can invoke this request simultaneously, portal being a web app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Vishal.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 12:07:49 GMT</pubDate>
    <dc:creator>viskakka@cisco.com</dc:creator>
    <dc:date>2019-03-01T12:07:49Z</dc:date>
    <item>
      <title>NSO actions[PYTHON] are single threaded</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-actions-python-are-single-threaded/m-p/3472791#M744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During testing found out that NSO actions written in python are single threaded.&lt;/P&gt;&lt;P&gt;Same action invoked via mulitple CLIs/REST are invoked sequentially.&lt;/P&gt;&lt;P&gt;Understand that CDB is one reason to make it sequential, but we could write actions that do read only operations, so no point of making them single threaded &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Question:&amp;nbsp; Is it configurable in NSO properties or somehow to change this behaviour? Any other workaround?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In my use case, i am using action which is being invoked by external portal to get some data from NSO. Internally action uses multiple X-path queries and computation to produce final consumable data by portal, hence need of action. But multiple users can invoke this request simultaneously, portal being a web app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Vishal.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:07:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-actions-python-are-single-threaded/m-p/3472791#M744</guid>
      <dc:creator>viskakka@cisco.com</dc:creator>
      <dc:date>2019-03-01T12:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: NSO actions[PYTHON] are single threaded</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-actions-python-are-single-threaded/m-p/3472792#M745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version are you using? There was a fix in NSO 4.5 that should have fixed this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 12:12:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-actions-python-are-single-threaded/m-p/3472792#M745</guid>
      <dc:creator>jvikman</dc:creator>
      <dc:date>2018-04-13T12:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: NSO actions[PYTHON] are single threaded</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-actions-python-are-single-threaded/m-p/3472793#M746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NSO being used is 4.4, will test this with 4.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2018 06:12:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-actions-python-are-single-threaded/m-p/3472793#M746</guid>
      <dc:creator>viskakka@cisco.com</dc:creator>
      <dc:date>2018-04-14T06:12:10Z</dc:date>
    </item>
  </channel>
</rss>

