Connection Execution Limits v2
Connection execution limits help you prevent a Step from returning more data or spending more time accessing a service than you expect. Set them on a Connection for each Environment.
Warning: Set finite execution limits in every Environment before going live, including Production.
Unlimiteddisables the corresponding safeguard and can allow a runaway Step to stall the Workflow. Review existing Connections too: Connections created before execution limits were available remain Unlimited until you configure them.
- Set limits for the number of rows, the size of a file or stream, and the time spent accessing a service.
- Every time a Step runs, it starts with a fresh set of limits, including each
ForEachiteration. - If a Step exceeds a limit, it fails with an error. Flowgear does not treat a shortened result as a successful response.
What each limit measures
| Limit | What it measures | Example | Units |
|---|---|---|---|
Rows |
The maximum number of rows a Step can get back in one result. | Customer records returned by a database query. | Rows. |
Stream size |
The maximum size of an individual file or stream a Step can get back. | An invoice PDF downloaded from a service. | MB, GB, or TB. |
Active time |
The time a Step spends calling the Connection and receiving its results. | Waiting for a database query and receiving its rows. | Seconds (secs), minutes (mins), or hours. |
A stream lets a Step receive data in parts, such as when downloading a file. Receiving the next part is called a read. Stream size applies to standalone files and streams. It does not measure the combined size of all results or the data embedded inside rows, including binary data in a database row.
The Console uses binary size units: 1 MB is 1,024 KB.
Active time example
Suppose a Step spends two seconds calling a service and three seconds receiving its results. The Workflow also pauses for twenty seconds between requests for more data while it processes results already received.
The call and reads use five seconds of Active time. The twenty seconds between reads do not count. The total elapsed time in the Workflow log can therefore be longer than the Connection's Active time limit.
When limits apply
Every time a Step runs, it starts with a fresh set of limits. Steps that use the same Connection do not share a running total. A Step inside a ForEach starts again with the configured limits on every iteration.
For example, with Rows set to 1,000, a Step that returns 800 rows in each of three ForEach iterations stays within the limit, even though it returns 2,400 rows across the loop. A single result containing 1,500 rows exceeds that limit.
Limits use the Environment in which the Workflow runs. Changing the Connection's Test limits does not change its Production limits.
Starting limits
When you create a Connection, Flowgear supplies these starting limits for the Environment it is created in. This applies in any Environment, including Test and Production:
| Limit | Starting value |
|---|---|
Rows |
1,000. |
Stream size |
10 MB. |
Active time |
120 seconds. |
The server applies these defaults when the creation request does not supply limits for that Environment. This also covers Connections created through MCP or the API. Explicitly supplied limits are preserved, including an explicit Unlimited setting.
These defaults apply when the Connection is first created. Updating an existing Connection or adding its values in another Environment does not add defaults. Any missing limits in those Environments remain Unlimited until you configure them.
Review the limits in every Environment, including Production, before going live. Connections created before execution limits were available are not updated automatically; set suitable finite limits for their workloads too.
Configure and choose limits
Follow Choose Connection Execution Limits to measure representative work and leave room for normal variation. A realistic sample may exceed the starting limits; use generous but finite limits while measuring.
For the setup steps and save behavior, see Connection Details Screen.
When a limit is exceeded
The Step fails with an error identifying the Connection, Environment, and exceeded limit. A row limit is not a way to request only the first rows of a larger result. Use the service's filtering or pagination options where available.
See Connection Execution Limit Exceeded for recovery steps and error-message examples. You can handle a limit error with a Try/Catch container; see Error Handling for how failures reach the Catch branch.