One application is if you are contacting an API with multiple requests. The WaitAsecond macro may help to pause the API long enough to process multiple rows without issue.

It can also be used to scrape sites without putting heavy loads on their server.  An Invisio sample of scraping the Alteryx community (See Insights to the Alteryx Community)

 

Macro:

wait1.png

As you can see, the part of the flow that runs through the WaitASecond tool gets a NOW timestamps which are 5 seconds a part, whereas the bottom stream, not running through the WaitASecond tool, all gets the same timestamp.

 

There are essentially two macros:

The first one assigns a unique id to each record and then uses that ID for the batch macro.

wait2.png

The batch macro has a “Command tool” that runs a ping that waits x seconds before timeout (199.199.199.199 if that exist in your network it won’t work).

wait3.png

The macro can be downloaded here (InvisoMacros.zip).