Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Wait timer using a random time

$
0
0

I have created some workflows that work 99% of the time. The 1% they don't work is because they are trying to post data to a wiki via a JSON rest call at the exact same second based on the workflow runtime in vCO. If I put in a wait time task I can't figure out how I would go about setting the attribute to wait a random amount of seconds. If I just tell it to wait 1 minute it will still run into the same issue so that won't help. Also, telling it to run at a certain time in the future wouldn't work as both of the workflows would use the same code to decide the future time.

 

Has anyone come up with a way to generate a random number (think seconds) with a maximum that then could be passed to the attribute? This would not guarantee but should greatly increase my chances of multiple workflows not calling the wiki at the same time. Yes, ideally the wiki would be able to handle this but it can't so I must find a work-around. Thanks for any help.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>