Notebooks and Jobs
What Changes When Someone Else Needs to Run the Notebook?
We can now find the pump readings and understand where a Spark calculation runs. The next practical question is where to write the code. In Databricks, a notebook keeps code in cells alongside explanations and displayed results. We can run one cell, inspect its output, and continue working.
That convenience can hide a dependency. Suppose we ran a cell that prepared clean_readings, changed the earlier cleaning rule, then reran only the final chart. The chart can still use the old object held in the running session. The saved code and the session’s current values are different things.
When the maintenance team needs a fresh table every morning, remembering yesterday’s click order is not a reliable procedure. We need to state what runs, which inputs it receives, and which earlier work must succeed first. Databricks jobs provide that workflow control. We will build the dependency part before discussing a schedule.
This local graph model checks an all-prerequisites-successful rule. It does not run notebooks, reserve compute, implement retries or reproduce every Lakeflow Jobs run condition.
Step 1 of 1
The morning pump update
Each task needs the successful output of the task above it.
| Task | Reads | Produces |
|---|---|---|
| read | The declared source table | The current batch of readings |
| clean | The read task’s batch | Readings accepted by the declared rule |
| check | The cleaned readings | A quality decision for this batch |
| publish | A successful quality decision | The table other programs are allowed to use |
read
- Reads
- The declared source table
- Produces
- The current batch of readings
clean
- Reads
- The read task’s batch
- Produces
- Readings accepted by the declared rule
check
- Reads
- The cleaned readings
- Produces
- A quality decision for this batch
publish
- Reads
- A successful quality decision
- Produces
- The table other programs are allowed to use
Code cells and the running session
A task’s missing prerequisites determine whether it can start. Its position on a drawing does not satisfy those prerequisites.