Set a limit
Setconcurrency when you register the workflow:
importContacts go at once. The limit is a whole number from 1 to 500.
What counts
A run counts toward the limit from the moment it’s sent to your app until it pauses or ends:- A run on its way to your app, or running in it, counts.
- A sleeping or waiting run doesn’t, since nothing runs while it’s paused. It counts again once it wakes up and goes back to your app.
- A pending run doesn’t count yet. It’s the one waiting for its turn.
Who goes next
Runs over the limit stay pending, and take their turn in the order they were created: the oldest goes first. Nelkap hands out free turns every minute, so a run that was waiting starts within a minute after a turn frees up. A run woken from a sleep or a wait waits for a turn too. It keeps its place by creation date, so it goes ahead of runs created after it.Your workspace’s limit
Your workspace also has a limit, set by your plan, on the runs going at once across all its workflows. A workflow withoutconcurrency only has that limit. A workflow with one gets whichever is lower. See Limits.
Change a limit
The limit you register replaces the old one at once. Raising it lets more runs start on the next minute. Lowering it never stops a run already going: the runs over the new limit finish, and no new run starts until the count falls below it. To remove a limit, register the workflow withoutconcurrency.
One run at a time
Withconcurrency: 1, the runs of a workflow go one after the other, in the order they were created. That’s useful for work that must never overlap, like a nightly sync that shouldn’t start before the previous one ended: