Domain 4 of 4 · Chapter 2 of 4

Implementing Lakeflow Jobs

Unlock the complete study guide + 24 practice exams totaling 1,424 questions.

Bundled into the existing Implementing Data Engineering Solutions Using Azure Databricks premium course — no separate purchase.

14-day money-back guarantee — no questions asked.

Included in this chapter:

  • A job is a graph of tasks, each with its own compute
  • Parameterize jobs: parameters, widgets, and task values
  • Triggers and schedules: match the arrival pattern
  • Control flow: dependencies, conditions, and loops
  • Reliability: retries, restarts, and notifications

Lakeflow Jobs trigger types by how work arrives

TriggerFires whenLatencyTypical use
ScheduledA quartz cron time is reachedExact clock timeFixed-cadence batch ETL
File arrivalNew files land in a UC locationAbout one minuteIrregular file drops
Table updateA monitored UC table gets new dataAfter the upstream commitChaining to an upstream table
ContinuousThe previous run ends (always-on)Near real timeAlways-on streaming
ManualYou click Run now or call the APIOn demandAd-hoc and external orchestration

Decision tree

Always-onstreaming?ContinuousTriggered bydata landing?Files in aUC location?Runs on afixed clock?File arrivalTable updateScheduledManual(Run now)YesNoYesNoFilesTableClockOn demand

Cheat sheet

  • Each task chooses job compute, serverless, or an existing all-purpose cluster
  • Job parameters are key-value pairs passed to every task
  • Set Run as, max concurrent runs, and tags when configuring a job
  • Tasks can share one job cluster to cut startup cost
  • A notebook task reads job parameters with dbutils.widgets.get
  • Lakeflow Jobs supports scheduled, file-arrival, table-update, continuous, and manual triggers
  • Continuous keeps a job always-on; file arrival launches a run per batch of files
  • A table-update trigger runs a job when a monitored table changes
  • File-arrival triggers monitor a Unity Catalog external location or volume
  • A scheduled trigger uses a quartz cron expression with a timezone
  • Pause a schedule to stop runs without losing the job definition
  • Queueing controls what happens when a scheduled run overlaps a running one
  • Notifications attach at the job or the individual task level
  • Notifications go to email or admin-configured system destinations
  • Duration thresholds warn when a run is late or slow
  • Continuous jobs auto-restart the whole run with exponential backoff
  • SDP pipelines auto-recover; non-continuous jobs use per-task retries
  • Restart run cancels the active run and resets the backoff period
  • When a Run if condition is evaluated an Excluded upstream counts as successful, while Upstream failed or Upstream canceled counts as failed
  • Cancelling a task run propagates downstream and still runs the tasks whose Run if condition handles failure
  • Downstream tasks depend on the For each task, never on its nested task
  • A For each task cannot contain another For each task, and it fails outright when the upstream task supplying its inputs is disabled
  • A stage another team owns belongs in its own job invoked by a Run Job task rather than copied as tasks into every consumer job
  • Run Job chains may not be circular, directly or indirectly, and may not be nested arbitrarily deep
  • Whether a caller can trigger a child job and override its parameters is decided by the permission the caller's run-as identity holds on the CHILD job
  • A value an operator must vary per run belongs in a job parameter, because a static task parameter can only be changed by editing the task definition
  • A dynamic value reference is the layer that lets a task consume run metadata or another task's value at run time instead of a hard-coded literal
  • Only a task value can carry a value the job could not know before it started, and it flows forward along task dependencies only

Unlock with Premium — includes all practice exams and the complete study guide.

References

  1. Lakeflow Jobs
  2. Configure and edit tasks in Lakeflow Jobs
  3. Configure compute for jobs
  4. Databricks Pricing: Flexible Plans for Data and AI Solutions
  5. Run a job with a Microsoft Entra ID service principal
  6. Configure and edit Lakeflow Jobs
  7. Configure job parameters
  8. Dynamic value references
  9. Access parameter values from a task
  10. Use task values to pass information between tasks
  11. Automate jobs with schedules and triggers
  12. Run jobs on a schedule
  13. Trigger jobs when new files arrive
  14. Trigger jobs when source tables are updated
  15. Run jobs continuously
  16. Control the flow of tasks within Lakeflow Jobs
  17. Triggered vs. continuous pipeline mode
  18. Add notifications on a job