Skip to main content

Call limits

Unstract Flow caps how often a workflow calls each connector action in an hour, so a run never floods a connected system. A run that reaches the cap shows Waiting for quota (throttled) and continues when calls free up.

How the limit is set​

The limit applies to each action of each connector instance, counted over a rolling hour across every run of the workflow. Flow takes the first of these that is set:

  1. Rate Limit for [instance] (calls/hour) in the step's gear dialog, for that instance, up to 5,000. Default inputs shows where.
  2. The connector's own published limit. Two publish one: the Database connector, 500,000 for each of its actions, and the reference table actions, 100,000 each. The reference table actions have no instance, so the gear dialog can't change theirs.
  3. Tool call rate limit (per hour) in the Settings tab of the editor's Tools and configuration panel, for the whole workflow, up to 5,000. It takes effect when you select Save, which saves every setting on that tab at once.
  4. 1,800 calls per hour.

The workflow limit is the default for every connector without a limit of its own. It never raises or lowers a connector's own limit: setting it to 3,000 for a slow API, or to 100 to protect one, leaves Database at 500,000. To change one instance's limit, set Rate Limit for [instance] (calls/hour) in the step's gear dialog. Platform Tools, such as CSV, table filter and file steps, count too; only the workflow limit changes theirs.

A deployment's runs use both limits as they are now, whichever tag the deployment runs. A run takes the workflow limit in force when it starts, and again each time it waits for quota or resumes from a review, and keeps it until the next of those. Only a run that took no workflow limit, because none was set, uses a newly set one from its next call. A changed instance limit reaches runs already going, usually from their next call and never more than 2 minutes later. While the workflow has an active deployment, the gear dialog and the Settings tab show a note saying so.

See the usage​

Settings has a Tool Call Limits tab: "A rolling one-hour window per workflow and tool, so a run never floods a connected service." It lists the workflows in projects you own or that are shared with you, when a run you started, or a scheduled or webhook run, hasn't ended or was active in the last two hours, with each connector action that made calls in the last hour. A run started with an API key counts as the key creator's. Owners and admins see every workflow in the organization.

ColumnWhat it shows
RemainingCalls still allowed before the limit.
LimitThe hourly limit.
Next slot freeWhen the oldest call in the window ages out and frees one slot.

The clear button on a row opens Clear this window?. Clear discards the last hour of recorded calls, so the full limit is available at once. Use it when you know the connected system has recovered.

Waiting for quota​

A run that reaches the limit waits between 15 seconds and 15 minutes and tries again. The run shows Waiting for quota; in the editor, the run panel shows Waiting for a call limit and names the connector action it waits for. After six waits, a call that's refused again fails the run with the limit message. So does a refusal whose next wait would take the total past two hours. The run waits once at a time. A call that is turned away while the run waits, such as another item of a parallel step, joins that wait and adds nothing to the count. It tries again when the run's wait ends, or sooner when its own connector action's window frees up first. A call that goes again and is turned away again before the run's wait ends joins it again. Only a call that is turned away after the run's wait has ended starts a new wait, and that one counts.

Raising a limit, or clearing the window, wakes a waiting run at once. Up to 25 waiting runs wake together; any others try again when their own wait ends. If the run is still over a limit, it rejoins the wait it was woken from, for no longer than what is left of it, and that adds nothing to the count. Clearing a row wakes every run waiting on any action of that connector, and raising a limit wakes runs waiting on a lower limit even when another limit still holds them. Raising the workflow limit doesn't wake a run waiting on a connector's own limit, which the workflow limit doesn't change. A run in progress keeps the workflow limit it last took until it next waits or resumes from a review. It uses a changed instance limit, and, if it took no workflow limit, a newly set one, usually from its next call. Those two changes never take more than 2 minutes. You can clear a window only on a workflow you can run.

The bell tells the person who started the run each time the run waits a minute or more, and again when it continues. For an API run that is whoever created the API key; for a scheduled or webhook run it's the workflow's creator. When the run gives up, the bell says so.

Limitations

A run that fails at a call limit with a message saying the workflow was prepared before runs could wait comes from an earlier release of Flow. Prepare the workflow again.