What is a Delivery Queue?
When you click Run for a Letterflow, Hato API checks whether your account has room for another delivery and enough request attempts left in the rolling 60-minute window. If capacity is tight, the Letterflow can wait in your account’s delivery queue. Dashboard runs, integration API requests, and eligible scheduled runs share this queue across regions. Waiting deliveries stay in the queue until they can move forward or are removed.
Choose what can wait
Save your queuing preferences in Settings. The Schedule page also shows whether scheduled queuing is currently enabled.
| Setting | Default | Effect |
|---|---|---|
| Queue deliveries when capacity is full | On | Letterflows requested from the dashboard or integration API can wait in the queue. |
| Also queue scheduled deliveries | Off | Scheduled Letterflows can also wait in the queue. |
Turn on the main queue setting to enable scheduled queuing. Turning either setting off affects future requests to run a Letterflow. Deliveries already in the queue keep waiting.
If your Letterflow cannot move directly to regional execution and queuing is off for that run, the run request returns an error right away. New deliveries go behind any already waiting, even if they need fewer request attempts.
Suppose your plan allows one delivery at a time. If a Letterflow is delivering, a second Letterflow can wait in your account queue without counting toward your simultaneous delivery limit or using any of your hourly request allowance.
When Hato API moves the second Letterflow out of your account queue, it counts toward your simultaneous delivery limit, even while it waits for regional execution. At that point, Hato API also sets aside enough request attempts for the path that could send the most requests, including possible retries and redirects. All Letters in the run share the same reservation.
Controlling the queue
- Review waiting deliveries
Open Queue on the dashboard. You can see how many deliveries are waiting, the queue limit, and each delivery’s position, how it was requested, how long it has waited, and why it is waiting.
- Reorder waiting deliveries
Use Move up or Move down to change which delivery gets the next chance to run. If the order has changed since you opened the queue, the list refreshes so you can try again.
- Remove a waiting delivery
Use Remove to cancel a delivery that is still in the account queue. If it has already left the queue, open Deliveries on the dashboard. It may be waiting for regional execution or already delivering. Use Stop if it is still active. Requests already sent cannot be undone.
You can request another run of the same Letterflow while an earlier delivery is still waiting or running. Double-clicking Run in the same dashboard form counts as one request.
What a waiting delivery keeps
When you request a run, Hato API records the Letterflow, run settings, and input versions it needs. Editing the Letterflow, Delivery Policy, or schedule leaves the waiting delivery’s saved settings intact. To use your changes, remove the waiting delivery and request a new run.
Deleting a saved Letterflow or an input it requires cancels any affected deliveries still in the account queue. Deliveries that have already moved to regional execution can continue using their saved inputs.
Scheduled runs
Turn on both queue settings to let scheduled runs wait in the account queue. Pausing or deleting a schedule cancels its runs still in the account queue. Runs that have already moved to regional execution can continue. Schedule edits apply to future runs.
One-time and finite-repeat schedules
Each of these schedules can have one run waiting at a time. A waiting run leaves the remaining repeat count unchanged. When Hato API reserves delivery capacity for it, the run counts toward the schedule and the next run is scheduled one interval from that time.
Removing a waiting run skips that delivery. If the schedule has more runs left, the next one is scheduled one interval after removal. Removing a waiting one-time run finishes the schedule.
Cron schedules
When creating or editing a cron schedule, choose what to do when another run comes due while one is already waiting.
- Keep one pending occurrence
- By default, the waiting run keeps its place and saved inputs. New runs for that schedule are skipped while it waits.
- Queue each occurrence
- Each scheduled run can get its own place in the queue until the queue is full.
You can save this choice at any time. It applies to future runs when both queue settings are on. If the queue is full at the scheduled time, that run is skipped. Runs missed while the scheduler is offline are also skipped.
Waiting in the integration API
A successful request to create a run returns HTTP 202, even if the delivery is still waiting in the account queue. Sending the same request again with the same Idempotency-Key returns HTTP 200 and the original run, even if that run was cancelled. Use a new key to request another run.
| Run state | Meaning |
|---|---|
waiting | In your account queue, waiting for enough capacity to move to regional execution. |
queued | Delivery capacity is reserved. The run is waiting to start in its execution region. |
running | The Letterflow has started running. |
Check the run’s queue_position and wait_reason while it waits in your account queue. The admitted_at field records when Hato API reserved capacity for the run. The started_at field records when execution began. If the queue is full, a new run request returns HTTP 429 with error.code=queue_full. Sign in to the dashboard to reorder or remove waiting deliveries.
Request a run and check its status →