IBM Security Join our 16,000+ members as we work together to overcome the toughest challenges of cybersecurity. Join the Community
Hi, I would like to write a script that stops the workflow for a random time between 0-300 seconds, how can I do it?
I Receive Message :
As of right now sleep() is not supported
Sleep is not allowed in the script, as you can see.
I suggest installing one of the official IBM Apps in the exchange, that come in with a "Timer" function you can directly add as an step in your workflow:
For random time, in the function pre-process, you can generate a random time with python, just as you are doing in the script, and pass it to the function with "inputs.nameoftheinput = random.randrange(10)"
Hope this helps!