A run whose error field reads waiting for other large syncs to end has not failed. It is back in the queue because it has to hold a large source's whole stored history in memory to deliver it, and other syncs on the same worker already hold as much history as etlmcp allows at once, or a run that has waited longer is ahead of it. The run starts again by itself a short while later, it uses none of its attempts, and you do not need to press Run again.
Why etlmcp puts the run off
Most deliveries send only the days a run fetched. Some send every row etlmcp has stored for the source, and to do that the worker reads the whole history into memory. Each such history is held in memory several times over while it is prepared, so several large ones at the same moment could need more memory than the worker has.
So etlmcp keeps a shared row budget for whole histories. A source counts against it only when its stored row count is above a fixed threshold; smaller sources are never put off. When a large source needs its history and the rows would not fit next to the histories already held, the run is put off instead of crashing the worker. If a single history is larger than the whole budget, it still goes through when no other history is held at that moment.
The exact threshold and budget are internal limits of the worker, not plan allowances, and they do not change with your plan.
Which pipelines it affects
Only a pipeline that delivers a whole history can wait like this. That happens in two cases.
Destinations that receive everything on every run. Each run of the CSV destination writes the full stored history, not only the new days. When the Google Sheets and Amazon S3 destinations are available, they deliver the same way.
Rows with no date. If your transform drops the date column, for example with a select or group rule that does not keep it, each delivered row stands for the whole history, not one day. A PostgreSQL destination then replaces all of the pipeline's rows, so the run has to read every stored row first. When the BigQuery destination is available, it behaves the same way. A transform that keeps date makes these destinations take only the run's date range, and the budget does not apply.
A webhook destination always receives the run's date range, so its runs are never put off for this reason.
When the run checks, and what happens to the data
etlmcp checks for room twice:
- Before it asks the platform for anything. If the history would not fit, the run is put off at once, and nothing is fetched.
- Just before delivery, when it actually reserves the room. If another sync took the room in the meantime, the run is put off here. The rows it fetched are already saved in etlmcp, so query_data shows them, but the destination has not received them yet. The next try fetches the range again and delivers it.
How long it waits, and who goes first
A put-off run is retried after a short pause, and keeps asking until there is room. Waiting runs are not served strictly in turn: a run that has been waiting a long time goes ahead of runs that started asking later, so a busy worker cannot keep a large sync waiting forever.
A put-off run does not count as one of the run's 3 attempts, it does not send a failure email, and the attempt count shown on the dashboard does not rise. Only a failure that etlmcp tries again, such as a network error or a platform's rate limit, uses an attempt; see retries.
How to see it
On the dashboard the run shows as queued between checks, and as running for the moment of each check, with its attempt number. The dashboard, the pipeline's page and the runs page show a run's error text only once it has failed or partly failed, so the waiting message does not appear there. The message itself is in the run's error field, which Get a run and List runs return over the REST API and get_run returns over MCP. The field holds the message while the run waits and is cleared or replaced when the run ends.
While the run waits, the pipeline cannot start another run, because only one run per pipeline may be queued or running. A run you started by hand also keeps counting toward your plan's cap on runs started by hand that are queued or running at once until it ends; scheduled syncs never count toward that cap.
How to make it less likely
- If you sync to PostgreSQL and do not need undated totals, keep the
datecolumn in the transform, so that each run delivers only its own range. - If several large CSV pipelines run at the same hour, the runs may queue behind each other; giving them different run hours spreads them out.