Keeping Flows Alive

Flows do not run at all times. They only run when needed, so that each flow has access to more memory and more resources.

When the flow detects an event, such as an HTTP request, an FTP upload/download, or an inject node set to repeat, then the flow starts if it is not already running. It then processes the request and stops when the process completes.

During this time, the flow is kept alive for a set amount of time - 15 seconds, by default. The Verizon Connect API nodes, including tde rest, tde template, and indy, all automatically issue keepAlives, so that you have at least 15 seconds to work with the resulting data returned in these blocks.

If you know a process in your flow may take longer than that (for example if you have a custom request(...) in a function node), then you can modify the keep alive value using one of the following methods:
 

Add a keep alive node to the flow, and configure it to keep your flow running for a given amount of time.
In a function node, use the keepAlive(seconds) function to keep the flow running for at least the number of seconds specified.
Include a keepAliveTime property in the message you pass through your flow.