Every source has one of four states: ok, needs_reconnect, invalid or disabled. Only an ok source syncs on its schedule. needs_reconnect means the platform login behind the source stopped working, and you fix it by reconnecting. invalid means the login still works but this one ad account is out of its reach, and you fix it by restoring access and pressing Check again. disabled means you paused the source yourself. A run you start by hand from the dashboard on a needs_reconnect or invalid source, a backfill included, is refused with HTTP 409.
Where you see the state
The sources page lists every connected account with a stamp in its State column: OK, Needs reconnect, Invalid or Disabled. Next to Needs reconnect and Invalid it prints the reason etlmcp recorded, when there is one. A pipeline page whose source is in one of those two states shows a note that the pipeline is not running and points you to the sources page.
The same values come back from the REST API and from MCP. See List sources and the list_sources tool for the response fields.
How the state is worked out
Two stored values decide the state: whether you switched the source on, and its health, which is ok, needs_reconnect or invalid. The state you see is disabled whenever the source is switched off, and its health otherwise. So a paused source reads disabled even if its account was lost in the meantime: resume it and the real health shows again. A run started by hand is checked against the health, not the state, so a paused source whose health is needs_reconnect or invalid is refused in the same way.
needs_reconnect: the login stopped working
A source moves to needs_reconnect when the platform refuses the grant it was connected with: the access was revoked, it expired, or a token refresh was turned down. This is about the login, not the account, so every source connected through that login changes together. A Shopify store's sources move here too when etlmcp's app is uninstalled from the store.
A sync that hits this ends as failed with {…} needs reconnecting, where the placeholder is the platform's name, and it is not retried. The organization's owners get one email per change, not one per failed run. See expiring connections for the warnings sent before a login runs out.
To fix it, press Reconnect next to the source and sign in with the same platform login; a different login is refused. Once the new grant is saved, the page says Reconnected. Its sources are back in order. and etlmcp lists the login's accounts again. Each source whose account is still listed and selectable goes back to ok, an invalid one included, and each one that is not is marked invalid.
invalid: one account is out of reach
A source moves to invalid when the login still works but the platform no longer shows that ad account to it. Only that source changes; the others on the same login keep syncing. The run that found it fails with this ad account is no longer accessible and is not retried, and the owners get one email.
To fix it, restore the login's access on the platform, then press Check again on the sources page. etlmcp lists the login's accounts again and checks every source of that login, not only this one: each source still listed and selectable goes back to ok, and each one that is not is marked invalid with the reason. If the login itself is refused during the check, the check answers reconnect {…} first and the login's sources that are not invalid move to needs_reconnect.
disabled: you paused it
Pause on the sources page switches a source off and Resume switches it back on. While it is switched off, the scheduler skips every pipeline that reads from it. Its stored history stays; nothing is deleted.
What happens to runs in each state
The scheduler picks a pipeline only when the pipeline, its source and its destination are all switched on and the source's health is ok. A needs_reconnect or invalid source is skipped until it is ok again.
Runs you start by hand are checked before anything is queued. The answer depends on where you start them:
| Where you start the run | Source state | Answer |
|---|---|---|
| Dashboard, Run now or a backfill | needs_reconnect |
409, reconnect {platform} first: its access was revoked or has expired |
| Dashboard, Run now or a backfill | invalid |
409, this ad account is no longer accessible; check it again on the sources page |
| REST API, Start a run | needs_reconnect |
400, this pipeline's source must be reconnected first |
| REST API, Start a run | invalid |
400, this pipeline's source is no longer accessible |
| MCP, run_pipeline | either | a tool error with the same text as the REST API |
The REST API checks the source before the dashboard's own checks run, which is why it answers 400 rather than 409 for these two states.