Area: Deployment Issues
Sub-Area: Remote Executor
Issue
Ingestion jobs run through a Remote Executor pool intermittently fail at startup but succeed when retried. The pattern can look like a readiness or timing problem, as if the pod becomes Ready before its virtual environments (venvs) are built. In the case this article is based on, every failed run was picked up by a single worker whose container image did not contain the bundled venvs that the ingestion sources required. Runs picked up by the other workers in the pool succeeded, and the retries succeeded because they landed on a different pod. Bundled venvs are built into the image at build time, so there is nothing to wait for at pod startup, and a readiness probe cannot fix a missing venv.
You Might Be Asking
- Why do my ingestion jobs fail at startup but succeed on retry?
- Can the Remote Executor readiness probe wait until venvs are built?
- Why are bundled venvs such as
snowflake-bundledmissing from some of my executor pods? - How do I check which image each executor pod is running?
Solution
- Review the failed run logs and note which worker handled them. If every failure comes from the same worker instance while other workers succeed, a mismatch between worker images is the likely cause. In the original case, the failing logs showed that bundled venvs (for example
snowflake-bundled,powerbi-bundled,dbt-cloud-bundled) did not exist in that worker's container image. List the image used by every executor pod:
kubectl get pods -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.containers[*].image}{"\n"}{end}'Add a namespace flag (
-n <your-namespace>) if the executors do not run in your current namespace.- Identify any pod running an image that lacks your bundled connectors. This is often a leftover Deployment or Helm release that still points to an older or default image.
- Bring every worker in the remote pool onto the same bundled image. Remove or update the stale Deployment or Helm release so all workers run the image that contains your custom bundled connectors.
- Re-run the affected ingestion sources and confirm the startup failures no longer occur. In the original case, jobs stopped failing once the executor pods were corrected.
Additional Notes
- Bundled vs. dynamic venvs: Bundled venvs are built into the image at build time and are used when the source's CLI Version is set to
bundled. Dynamic venvs are built at the start of each run and require PyPI access and ephemeral storage. A plugin that is not present in the image falls back to a dynamic venv build. - Readiness probe behavior: The Remote Executor readiness probe checks that the worker process is up (a worker heartbeat). It does not check venv state, and there is no setting to make it wait for venvs. For bundled venvs this does not matter, because they already exist when the pod starts. Engineering is separately tracking the possibility that "pod Ready" and a venv build can race on the first job after startup for dynamic venvs, and no fix had landed at the time of writing.
- If failures persist after all pods use the same image: Check the first failing run's log for the exact venv or
uverror. For dynamic venvs, confirm network access to PyPI and sufficient/tmpspace. - Version alignment: In the original case the executor was on an older version (2.2.1) than the DataHub instance (v2.3.6). When fixing the image, it is recommended to rebuild the custom bundled image on the version matching your DataHub instance (for example
v2.3.6-cloud) with the same plugins (snowflake, powerbi, dbt).
Related Documentation
- None
Tags: remote-executor, bundled-venvs, ingestion-failure, intermittent-failure, kubernetes, pod-image, readiness-probe, helm, venv, retry-succeeds