Area: Ingestion Issues
Sub-Area: Remote Executor Task Processing
Applies to: Cloud
Issue
Ingestion runs on a Remote Executor stay in "Pending". The executor looks healthy in Data Sources > Executors, but it does not pick up the queued runs.
You Might Be Asking
- Why does my executor look healthy but not process ingestion runs?
- Why did restarting the executor change nothing, or make things worse?
- Does DataHub reassign Pending runs to another executor?
- How do I stop runs from waiting in Pending?
Cause
A healthy status does not mean the executor is taking work. Each executor sends a status record to DataHub from a separate discovery thread, every 30 seconds by default. That ping does not check task intake. A fresh status alone does not prove the executor is receiving runs.
Common reasons a run stays Pending:
-
Pool ID mismatch. An executor only receives work for the pool ID it reports.
DATAHUB_EXECUTOR_POOL_IDon the executor must match the Pool Identifier in the UI exactly. IfDATAHUB_EXECUTOR_POOL_IDis unset, the executor usesDATAHUB_EXECUTOR_WORKER_ID. If both are unset, the pool isdefault. - Channel mismatch. The executor must use the same channel (SQS or KAFKA) as its pool, or it does not receive work.
-
No free capacity. Each executor runs
DATAHUB_EXECUTOR_INGESTION_MAX_WORKERSingestion tasks at once. The default is 4, and you can change it. Each task has a weight, 1/MAX_WORKERS by default. The total weight of running tasks can't exceed 1.0, so extra tasks wait. A source with a heavy weight makes other runs wait. You can set the weight of one source withEXECUTOR_TASK_WEIGHTin the Extra Environment Variables field of the source. -
Network blocks. The executor needs outbound HTTPS (port 443) to
https://<your-company>.acryl.io/*. For SQS pools, the executor also needs outbound HTTPS tohttps://sqs.*.amazonaws.com/*. If the executor cannot reach these endpoints, it cannot get runs.
DataHub does not reassign Pending runs. A background sweeper on the DataHub Cloud side keeps at most one RUNNING or PENDING run per ingestion source:
- A RUNNING run with no update for an hour is marked ABORTED ("Ingestion was aborted due to worker pod eviction, crash, or restart."). If it is still the source's most recent request and no other run is active, DataHub restarts it automatically, up to a maximum number of attempts.
- Pending runs are not restarted. A Pending run may be waiting for an executor to pick it up. If it stays Pending for more than 2 days, DataHub cancels it with "pending timeout".
- If the same source has a newer Pending run, or a RUNNING run, the older Pending run is marked Duplicate. With two Pending runs and nothing running, the newer run is kept.
- The sweeper also expires executor status records that were last updated over an hour ago, or that come from a stopped executor. It deletes records last updated over a month ago.
You can't change these sweeper settings. To change them, contact DataHub Support.
Solution
-
Check the executor in the UI. Open Data Sources > Executors. For each pool you see the active executors, their last reported time and status (Active or Stale), and the ingestion tasks running now. The Channel column shows SQS or KAFKA. Click "See more" next to an executor to see "What it is working on": slots in use, waiting and running runs, and the last check for work. On executors from DataHub 2.4.0 or later, these reports are on by default. Restart the executor once after a DataHub upgrade so it starts sending them.
-
Match the pool ID. Compare
DATAHUB_EXECUTOR_POOL_IDon the executor with the Pool Identifier under Data Sources > Executors. With Helm, set the pool with--set global.datahub.executor.pool_id="<pool>". -
Match the channel. If the pool uses KAFKA, the executor must use it too. With Helm, set
--set global.datahub.executor.channel="KAFKA"(default SQS). With Docker or ECS, setDATAHUB_EXECUTOR_MODE=kafka-workerinstead ofworker. Kafka pools are available on DataHub Cloud instances deployed on GCP. They need Remote Executor v2.3.0 or later (Helm chart 0.0.70 or later). -
Check the executor image version. The executor does not have to be the exact same version as the DataHub server. Each release note lists the compatible executor images. For v2.4.4, that list is v2.2.0-cloud through v2.4.4-cloud.
-
Check the network and URL. For Helm (
global.datahub.gms.url) and ECS, the URL ishttps://<your-company>.acryl.io/gms, with the trailing/gms. The Docker example instead setsDATAHUB_GMS_HOSTto the raw domain name,<your-company>.acryl.io, without/gms. Make sure outbound 443 is open to the endpoints listed above. No inbound connectivity is needed. The executor also needs access to the container registry that hosts the executor image. After the executor picks up a run, it needs access to a Python package index. A blocked package index does not keep a run in Pending. In that case, the run fails with "Failed to set up virtual environment:". -
Tune concurrency. To lower concurrent memory use, set this on the executor:
DATAHUB_EXECUTOR_INGESTION_MAX_WORKERS=2The value 4 is a default, not a hard limit. If you raise it, raise CPU as well. For a heavy source, open the source and expand Advanced Settings. Then put this in Extra Environment Variables:
{"EXECUTOR_TASK_WEIGHT": "1.0"}A weight of 1.0 runs that task alone. The executor reads the weight only from Extra Environment Variables, not from the recipe. Other runs wait while a heavy task runs, so set it only where you need it.
-
Clear stuck runs and re-run. After you fix the cause, start a new run of the source. The sweeper keeps the newer Pending run and marks the older one Duplicate, so you don't need Support to clear it. If you do nothing, DataHub cancels a run that stays Pending for more than 2 days. If a run is RUNNING and you have execute rights, you can cancel it from the actions menu in Run History. Cancelling a running execution does not remove data that was already ingested.
-
Be careful with restarts and restart automation. Restarting a busy executor aborts its running runs. DataHub later marks those runs ABORTED and may restart them automatically. Don't automate restarts based on log silence.