cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
746
Views
3
Helpful
2
Replies

NSO actions[PYTHON] are single threaded

viskakka@cisco.com
Cisco Employee
Cisco Employee

During testing found out that NSO actions written in python are single threaded.

Same action invoked via mulitple CLIs/REST are invoked sequentially.

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 only.


Question:  Is it configurable in NSO properties or somehow to change this behaviour? Any other workaround?


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.


Thanks

Vishal.

2 Replies 2

jvikman
Cisco Employee
Cisco Employee

Hi Vishal,

What version are you using? There was a fix in NSO 4.5 that should have fixed this.

BR,

Johan

NSO being used is 4.4, will test this with 4.5

Thanks

Vishal.