MarketplaceStudioSnippetLoop with Timeout

Create your first automation in just a few minutes.Try Studio Web

Loop with Timeout

Loop with Timeout

by Paradox Automation

Star

3

Snippet

Downloads

113

Corinna Robertson
Posted 4 years ago

I simulated this code and added log messages to follow execution. The do while on the left is the only thing executed and it is an infinite loop (by design for the purpose of testing parallel execution) the sequence on the right with the delay is never executed. It seems these are not truly parallel unless I am missing something. Does this code work for whoever has tried it?

Nicolas Erlichman
Posted 4 years ago ago

Hi Corinna, thanks for downloading and testing the component!

It is true that the Parallel activity is not trully parallel execution. However, this workflow indeed breaks when the timeout is exceeded. Did you modify the default value of the variable timeout to set after how much time you want the exception to appear? 

Another thing that I would recommend is to try to have something in the loop that takes some time to execute (at least 50-100 milliseconds) and not only a log message for example, to prevent any kind of strange problems that could occur with the parallel activity.

Publisher

Paradox Automation

Visit publisher's page

License & Privacy

Apache

Privacy Terms

Technical

Version

1.0.0

Updated

February 4, 2021

Works with

Studio: 19.10 - 22.10

Certification

Silver Certified

Support

Email: nerlichman@paradoxautomation.com

Link: https://www.paradoxautomation.com

Monday - Friday 10 AM to 6 PM UYT; Response time: 2 business days; Resolution time: 10 days