Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

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.

  1. read

    Reads
    The declared source table
    Produces
    The current batch of readings
  2. clean

    Reads
    The read task’s batch
    Produces
    Readings accepted by the declared rule
  3. check

    Reads
    The cleaned readings
    Produces
    A quality decision for this batch
  4. publish

    Reads
    A successful quality decision
    Produces
    The table other programs are allowed to use
This invented workflow uses an all-prerequisites-successful rule. A real job can use other run conditions, branching and retries.

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.