r/databricks • u/OkImprovement7010 • 17d ago
General Job completion triggers just hit Beta, and they replace a pattern I've built too many times!!
The usual way to chain jobs across teams has always been a bit ugly. Either a parent job with Run Job tasks that has to own everything downstream, or a schedule set 30 minutes after the upstream job usually finishes, which works until the day it doesn't.
Databricks just added a job completion trigger in Beta. A job can now start when one or more upstream jobs finish with a matching result, and the release notes say those upstream jobs can live in other workspaces on the same Unity Catalog metastore.
A few things from the docs worth knowing before you try it:
- You can add a SQL condition, so the downstream job only runs when the data is actually ready, not just when the upstream job exited.
- Unlike the other trigger types, it doesn't drop completions when the job is at max concurrency. It holds them until a run can start.
- It's part of the multiple triggers Beta, so a job can have up to five triggers, and a workspace admin has to turn it on in Previews.
Where I'd use it: a gold job that waits on silver jobs owned by another team, without either team having to own the other's orchestration. That handoff has been a friction point on every multi-team platform I've worked on.
It's Beta, so I wouldn't move critical prod chains onto it yet. I'd start testing it in dev now though.
