ADR-0011: Databricks job rendering¶
Architecture: Section 12, The Databricks plugin
Context¶
A plan must run as one Databricks job, with run history, repair and the platform's own scheduling, and the same plan must also run locally.
Options¶
- One task per unit as
python_wheel_task, in a saved job. Gives run history, repair,only-subset runs and up to 1,000 tasks. runs/submit(ephemeral). No saved job, but limited to 100 tasks and no repair history. Kept for--ephemeraldev runs.- Fewer, fused tasks. Needed only above the task limit (
databricks.task_grouping).
Decision¶
Each unit becomes one python_wheel_task running pipeloom run --manifest ... --select unit:<id> --expect-plan-hash <h> --run-id ....
- Task keys are sanitized model names, truncated with a short hash suffix (assumed 100-character limit, unverified).
- Compute: serverless by default, with one
environments[]entry pinning the pipeloom distributions to the running version (environment_versionis an assumed field, unverified).compute: job_clusteris the alternative. - The default is a saved job found by tag
pipeloom_job=<project>.<pipeline>.<target>:jobs/create, orresetwhen it exists, thenrun-now. Settings:max_concurrent_runs: 1, queueing, parameterspipeloom_run_idandfull_refresh. pipeloom databricks bundlewrites a deterministicresources/pipeloom_<project>.job.yml.pipeloom databricks deployuses the SDK directly.- An empty
pipeloom_run_idresolves todbx-<job.run_id>. Each task writes its unit file toartifacts.rootand publishestaskValues(capped well under 48 KiB). A finalpipeloom__finalizetask (run_if: ALL_DONE) writesrun_results.json. - Above 1,000 tasks the plan fails with PLD001 and a hint to use task grouping or split by selector. No automatic job chaining before 1.0.
Consequences¶
- One job definition, whether it is triggered from the CLI, the Databricks UI or Airflow (ADR-0012).
- Repair keeps the job run id, so the pipeloom
run_idis stable and the attempt number increments. pipeloom databricks run --selectresolves to task keys plus finalize and usesonly.
Status¶
Accepted
Date¶
2026-10-29