ETLMCPData Conveyance Works
Log in Start free
Docs

Run statuses: queued, running, success, partial, failed

What each etlmcp run status means, why 'partial' says your rows were stored but not delivered, and what to do about each one.

Every etlmcp run has one of five statuses: queued, running, success, partial or failed. The first two mean the run has not ended; the last three are final. partial means the run fetched your rows from the platform and stored them, then failed while handing them to your destination: your data is in etlmcp, but the destination did not get this run's rows. failed means the run stopped before delivery, while fetching or while applying your pipeline's rules, or that etlmcp ended the run itself.

The five statuses

Status Final What it means
queued no The run is waiting for a worker, for its first attempt or its next one.
running no A worker is on it. Each attempt counts from here.
success yes The rows were fetched, stored and delivered. The error field is empty.
partial yes The rows were fetched and stored, but delivery to the destination failed.
failed yes The run ended before delivery began, or etlmcp ended it itself, for example because it could not be queued or its worker stopped.

You read a run's status with Get a run, List runs or the MCP tool get_run. The pipeline keeps the status of its last run, so the pipelines table shows the latest outcome.

How a run moves between them

A run is created as queued. When a worker picks it up, it becomes running and its attempt count goes up by one. From there it ends in one of three ways:

  1. It finishes, and the run is marked success with the rows it fetched and the rows it delivered.
  2. It hits a failure that can pass, such as a network error, and it has attempts left. It goes back to queued, and the error field reads retrying: {…} with the reason in place of the braces. A run gets 3 attempts in all.
  3. It hits a failure that cannot pass, or the last attempt fails. It ends as partial or failed, depending on where it stopped.

A run can also go back to queued without using an attempt: with waiting for other large syncs to end when other syncs hold the memory it needs, or with retrying: the server restarted when its worker is being stopped. Retries covers both waits and which failures are retried.

Why a run is partial rather than failed

A run works in three stages: fetch, transform and deliver. etlmcp fetches the rows from the platform and stores them, replacing the stored rows for the run's days in one step. Only then does it apply your rules and hand the result to the destination. A failure in the deliver stage makes the run partial; a failure in any earlier stage makes it failed.

The status tells you where to look:

  • partial: the problem is on the destination side. A database that refused the connection, a table it could not write, or a webhook endpoint that returned an error all end this way. Your stored rows are current, so query_data already returns them, before your rules are applied. In the pipelines table, a partial run on a destination other than CSV shows a Fix destination button that opens your destinations.
  • failed: the problem is on the source side or in your pipeline. A platform login that needs reconnecting, an ad account you lost access to, or data the platform returned that could not be read end here. A rule that cannot be applied also ends as failed, even though the rows were already stored by then.

A partial run records the rows it fetched in rows_in, and rows_out stays at zero, because nothing was delivered.

What happens to the days a partial run missed

A CSV export is rebuilt from the pipeline's whole stored history every time, so the next run that delivers carries the days of a partial run with it, and etlmcp treats those days as covered.

A destination that is sent only the run's own date range, such as PostgreSQL or a webhook, never got the days of a partial run. etlmcp counts only delivered days when it works out where the next scheduled sync starts. If the last delivered day is older than the sync's usual window, the sync starts further back to cover the gap, within the history your plan keeps. Once you fix the destination, the next scheduled sync delivers the missed days with the new ones, or you can start a run by hand over the missed range.

Error messages etlmcp sets itself

The error field holds a short, readable reason, never secrets or row contents. When etlmcp passes on an error from a platform, a database or another service, it keeps only that error's first line and cuts it to a fixed length. These messages come from etlmcp's own bookkeeping rather than from a stage:

  • worker stopped during sync: the worker running the sync stopped sending signs of life, so etlmcp ended the run as failed.
  • sync did not start: the run stayed queued too long without a worker taking it up, so it was ended as failed.
  • could not queue sync: the run was created but could not be put in the queue, so it was marked failed straight away rather than blocking the pipeline.
  • internal error: something went wrong inside etlmcp itself. The run is not retried. It ends as failed, or as partial when the fault came while delivering.

Emails about failed and partial runs

When a run ends as failed or partial, etlmcp emails the organization's owners. The email speaks of a failed sync in both cases, so check the run's status to tell a delivery problem from a source problem. A scheduled sync that could not be queued also sends one, with the error could not queue today's sync; a run you start by hand that could not be queued does not. The email reference lists how often these go out.

Related