You are viewing limited content. For full access, please sign in.

Question

Question

Laserfiche API Concurrency Limits - How to Delete Search Operations?

asked on August 2

I have web requests in a workflow that call the Laserfiche API to start an asynchronous search task and then retrieve the results. I am having issues with the concurrency limits in the workflow and getting this error: "{"type":"requestLimitExceeded","title":"Error: Operation could not be started. Ensure you have not reached the global/session limit and try again....".

 

I solved this by delaying the time between web request calls for 5 minutes in the workflow but this slows down the workflow by a lot. I found in the documentation about service limits (https://doc.laserfiche.com/laserfiche.documentation/en-us/Default.htm#../Subsystems/ProcessAutomation/Content/Resources/Service-Limits.htm#LaserficheAPIlimits) that there are "best practices of deleting search operations when the results are no longer needed".

So how do we delete search operations to free up space because in the API documentation I only see information on starting the search task and retrieving results, not about deleting search tasks.

0 0

Answer

SELECTED ANSWER
replied on August 2

https://api.laserfiche.com/repository/swagger/index.html#/Tasks/CancelTasks will help you cancel the tasks when you are done using them in workflow. I would still keep around some retry logic because you will still have some concurrent workflows with a chance to hit concurrency limits again. But removing tasks when you are done with them in the same workflow should alleviate most of your issues.

 

That being said, we are looking into some of our limits especially the search task operations one so we appreciate the feedback!

1 0

Replies

replied on August 2

Thank you that was very helpful!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.