Area: Ingestion Issues
Sub-Area: Remote Executor / Ingestion Run Reporting
Applies to: Cloud
Issue
In Manage Data Sources, the Last Run column for an ingestion source shows an old time, for example "7 days ago". The Synced: time in the sidebar of an asset from that source shows a recent time, for example "10 hours ago". The source's Run History has gaps where you expected scheduled runs.
You Might Be Asking
- Why does the dataset page show "Synced: 10 hours ago" when the source shows Last Run 7 days ago?
- Is my Remote Executor failing to report run results back to DataHub?
- Why is Run History missing my nightly runs?
- How do I limit how many ingestion runs my Remote Executor runs at the same time?
Cause
The two values come from different places, so they can disagree.
Last Run is the start time of the newest run of that one source. DataHub sorts a source's runs by request time, newest first, and shows the start time of the first one. The Remote Executor writes this start time when it starts the run, before the ingestion does any work. So "Last Run: 7 days ago" means DataHub has no newer run of that source. If the newest run has not started yet, Last Run shows - and the Status column shows Pending.
Synced is the last time an ingestion run wrote one of the asset's core aspects, such as its properties, schema, status, browse path or profile. Only writes that carry an ingestion run ID count. Any ingestion recipe, run from the UI or from the CLI, sets a run ID, so a different source that ingests the same asset also moves Synced. Edits to tags, owners or documentation do not move it. A recent Synced time does not prove that this source ran.
A slow or overloaded executor does not hide finished runs. Before each run, the executor runs datahub ingest run --help to check whether the source's CLI version supports the --report-to flag. This check has no timeout, and it does not decide whether the run result reaches DataHub. If the flag is missing, the executor logs Warning: This version of datahub does not support --report-to, runs the ingestion, and still sends the run's status, start time and duration. Only the structured report is left out.
Solution
Find the missing runs
-
Look at the source's recent runs. In Manage Data Sources, click the Last Run value on the source's row. This opens the Run History tab filtered to that source. See Viewing Run History.
-
If no runs appear after the Last Run date, the source did not run on its schedule. Open the source and check its sync schedule: Run on a schedule must be on, and the cron expression and time zone must match when you expect it to run. See Sync Schedule. Run the source once by hand to confirm the source and the executor work. If the schedule is right and scheduled runs still do not appear, contact DataHub Support with the source name and the dates of the missing runs.
-
Find out what keeps the asset's Synced time current. Check whether another ingestion source, or a CLI ingestion recipe, also ingests this asset. That pipeline explains the recent Synced time while this source is not running.
-
After you fix the schedule, check that each scheduled run appears in Run History and that Last Run moves forward after each scheduled time.
If runs appear but stay Pending or run slowly
Executor capacity does not cause a stale Last Run. A run that waits in the queue still shows in Run History with status Pending. Use these steps only when runs appear but stay Pending or take much longer than usual:
- Confirm the pool's executors are running. See Checking Remote Executor status.
- Stagger your schedules so large ingestions (for example Snowflake, BigQuery and Redshift) do not start at the same time.
- The environment variable
DATAHUB_EXECUTOR_INGESTION_MAX_WORKERSon the executor sets the maximum number of ingestion tasks it runs at once. The default is4. If you raise it, add CPU to match. The best practices guide recommends1 + n + kcores, wherenis the number of concurrent ingestion runs andkis 1 if you use Observe features on assets that executor ingests, else 0. See CPU and parallelism. - For a heavy source, set
EXECUTOR_TASK_WEIGHTin the source's Extra Environment Variables, for example{ "EXECUTOR_TASK_WEIGHT": "1.0" }. Each task has a default weight of 1 divided by the worker count (0.25 with 4 workers). The total weight of running tasks cannot go above 1.0, so new tasks wait in a queue until there is room. A task with weight 1.0 runs alone. See Performance Settings and Task Weight-Based Queuing.