What you will be able to do
- Configure a simple or advanced (Quartz cron) schedule with a time zone, and predict how daylight saving time affects it
- Explain how continuous mode differs from other triggers in concurrency, retries and dependencies
- Set up a file arrival trigger on a Unity Catalog volume or external location and pair it with Auto Loader
- Set up a table update trigger with any-table or all-tables conditions and the right permissions
- Choose between Minimum time between triggers (cooldown) and Wait after last change (debounce) for a given arrival pattern
Key concept
Job trigger — A trigger is the job-level setting that decides when a Lakeflow job starts a run. It can follow the clock (a schedule), run continuously, or react to an event such as files landing or a table changing. Without one, a job runs only when someone starts it.
1.Trigger types and the rules every trigger shares
A new Lakeflow job runs only when you start it. Until you add a trigger, the only ways to run it are the Run now button or an external orchestration tool calling the API. You add a trigger in the job's Job details pane, under Schedules & Triggers, with Add trigger. After you save, the job starts runs on its own.
| Trigger type | What starts a run |
|---|---|
| Scheduled | A time-based schedule (simple interval or advanced cron) |
| Continuous | The previous run completing or failing, so the job is always running |
| File arrival | New files in a monitored Unity Catalog storage location |
| Table update | Updates to monitored source tables |
| Model update | A Unity Catalog model being created, a model version becoming ready, or an alias being set (Beta) |
| None (manual) | Run now, or another orchestration tool |
Concurrency applies to every trigger type. By default only one run of a job can be active at a time. If a trigger fires while that run is still going, the new run is skipped. It is not queued. You can raise the limit under Advanced settings if the job can safely run alongside itself, but the default protects most ETL jobs from two runs writing to the same tables at once.
You can pause a trigger without deleting it. Pause stops the trigger from starting new runs, and a run already in progress finishes normally. Resume brings back the same configured behavior. You can also switch the Trigger Status between Active and Paused while creating or editing a trigger. Paused triggers do not count toward the workspace limit of 12,000 active triggers.
A job can have more than one trigger. While the Multiple Triggers feature is in Beta, the limit is five per job, and the triggers can be the same type or different types. A run starts when any active trigger fires. A common pattern pairs a table update trigger, which starts the job as soon as data is ready, with a scheduled trigger as a backup. Each trigger is paused and resumed separately. A continuous trigger is the exception: it cannot be combined with any other trigger, because the job is already always running. For deciding which of these suits a workload, see time-based versus data-driven triggers.
Checkpoint 1 of 9· Match them up
Match each Lakeflow Jobs trigger type to the event that starts a run.
Tap a term, then the definition that fits it.
Scheduled triggers follow the clock. File arrival and table update triggers react to data. With None, the job runs only when someone starts it. A continuous trigger reacts to neither the clock nor the data: it starts a new run whenever the last one ends, so the job is always running.
“Continuous | To keep the job always running, trigger another job run whenever a job run completes or fails.”Source: docs.databricks.com
2.Scheduled triggers: simple intervals and Quartz cron
A scheduled trigger comes in two forms. A Simple schedule takes an interval and a unit, for example every 12 hours. You cannot choose when its first run happens: the scheduler picks that time when you save the schedule. An Advanced schedule lets you set the period, the start time and the time zone. Tick Show Cron Syntax to see and edit the schedule as a Quartz cron expression.
Take the expression 46 0 9 * * ? with the time zone America/Los_Angeles. It runs the job every day at 09:00:46 Los Angeles time. A Quartz expression lists its fields in this order: seconds, minutes, hours, day of month, month, day of week. A * matches every value, and ? means no specific value. The documented expression 0 0 9 * * ? runs a job every day at 9:00 AM, which confirms that hours is the third field.
"schedule": { "quartz_cron_expression": "46 0 9 * * ?", "timezone_id": "America/Los_Angeles", "pause_status": "UNPAUSED"},"max_concurrent_runs": 1,The time zone you choose has consequences. In a zone that observes daylight saving time, an hourly job can be skipped, or appear delayed by an hour or two, when daylight saving starts or ends. If the job must run every hour in absolute time, choose UTC. If it must run at 09:00 local time all year, a daylight-saving zone is the right choice.
Two more limits apply regardless of the cron expression. Databricks enforces at least 10 seconds between runs started by a schedule, even if the expression asks for more frequent runs. The scheduler is also not designed for low-latency work. Network or cloud problems can delay a scheduled run by up to several minutes, and when the service is available again the run starts immediately. A schedule is the right tool for a fixed cadence, but not for reacting within seconds.
Checkpoint 2 of 9· Check yourself
A job's advanced schedule runs hourly in America/Los_Angeles. The business now needs a run every hour in absolute time, with no hour skipped or shifted when daylight saving time starts or ends. What should the data engineer change?
In a time zone that observes daylight saving time, an hourly job can be skipped or appear delayed when the clocks change. UTC has no daylight saving time, so choosing it keeps the job running every hour in absolute time. The concurrency limit and a denser cron expression do not change how the clock change is handled.
“To run at every hour (absolute time), choose UTC.”Source: docs.databricks.com
3.Continuous mode: always one run active
A continuous trigger keeps a job running all the time. When a run completes or fails, the scheduler starts the next one, normally within 60 seconds. Databricks recommends continuous mode for always-on streaming workloads. It replaces the older advice to give streaming jobs an unlimited retry policy and a limit of one concurrent run.
Because the job is always on, continuous mode turns off several settings other jobs have:
- Only one instance of a continuous job can run, so there is no concurrency setting to raise.
- Retry policies are not available. The whole job is retried on failure with exponential backoff, and there is no cap on the number of retries.
- Task dependencies are not available.
You can still retry at the task level by setting Task retry mode to On failure, which is the default for continuous mode. Choosing Never leaves retries to the job level. For retry policies on ordinary jobs, see task retries and control flow.
Some buttons also change. While the continuous trigger is active, Run now becomes Restart run, which you use to restart the job so it picks up a new configuration. Pause stops the job, and Run now comes back. If a run is still active when you resume a paused continuous trigger, the scheduler waits for that run to finish before it starts a new one.
Checkpoint 3 of 9· Check yourself
A vendor drops files into a Unity Catalog volume at unpredictable times, sometimes hours apart. The team wants each drop processed promptly, without keeping compute running between drops. Which trigger setup fits?
A continuous trigger starts a new run whenever the previous one ends, whether or not new data has arrived, so compute stays busy between drops. A file arrival trigger starts a run only when files land. A continuous trigger cannot be combined with another trigger, and it allows only one instance at a time, so the other two setups are not possible.
“To keep the job always running, trigger another job run whenever a job run completes or fails.”Source: docs.databricks.com
Checkpoint 4 of 9· Exam question
A data engineering team ingests raw CSV files from an external vendor at unpredictable times, sometimes several times per hour and sometimes not for a full day. They want the Lakeflow job to start processing as soon as new files land in a Unity Catalog volume, without running on a fixed cron schedule that would waste cluster time when no files have arrived. Which trigger configuration best fits this requirement?
Correct answer: B — Configure a file arrival trigger on the Unity Catalog volume so the job automatically starts a run once Databricks detects that new files have been written there.
- A. An hourly cron schedule would run the job on a fixed cadence even during hours with no new files, wasting cluster time, and could also leave files unprocessed for up to an hour after they arrive. It does not react to the actual event the team cares about.
- B. A file arrival trigger watches the monitored Unity Catalog volume and starts a run once new files are detected there, which directly matches an unpredictable, event-driven arrival pattern without needing a fixed schedule.
- C. Watching the job's own output table reacts to the job having already run, not to new vendor files landing in the source volume, so it would not help the job start in response to new source data.
- D. A continuous trigger reruns the job repeatedly regardless of whether new data exists, which burns compute continuously instead of only reacting when the vendor actually delivers files.
4.File arrival triggers on volumes and external locations
A file arrival trigger starts a run when new files land in cloud storage. It is useful when files arrive at irregular times, such as a vendor that sometimes uploads several times an hour and sometimes not for a day. A cron schedule for that vendor either runs often and finds nothing, or runs rarely and leaves files waiting. The trigger checks for new files about once a minute on a best-effort basis. It adds no cost beyond the cloud provider's charges for listing files.
The monitored location must be governed by Unity Catalog. Point the trigger at the root or a subpath of a Unity Catalog volume (for example /Volumes/mycatalog/myschema/myvolume/mydirectory/) or of a Unity Catalog external location. The trigger checks all subdirectories below that path recursively. To set it up you need:
- a workspace with Unity Catalog enabled
- READ permission on the storage location
- CAN MANAGE permission on the job
Databricks recommends enabling file events on the external location, and volumes on such a location get them by default. With file events, Databricks tracks new files from the cloud provider's change notifications instead of listing them, which makes the trigger faster. Use Test connection to check the path before you save.
The trigger tells you that files have arrived, but not which files are new. Use incremental ingestion to work that out. A notebook task that runs Auto Loader on the same path, with availableNow, processes exactly the files it has not seen before. Its checkpoint gives exactly-once guarantees. If you need custom logic per file, a foreachBatch variant can return the file paths instead, but it only guarantees at-least-once processing.
# Configuration
file_location = "[REPLACE]" # The same URL configured for the file arrival trigger.
checkpoint_location = "[REPLACE]" # a separate URL (outside `file_location`) used to store the Auto Loader checkpoint, which enables exactly-once processing.
sink_table = "[REPLACE]" # Delta table to write to
# Use Auto Loader to discover new files.
# Do not modify code below this line
streamingQuery = spark.readStream.format("cloudFiles") \
.option("cloudFiles.format", "json") \
.option("cloudFiles.schemaLocation", checkpoint_location) \
.option("cloudFiles.useManagedFileEvents","true") \
.load(file_location) \
.writeStream \
.option("checkpointLocation", checkpoint_location) \
.trigger(availableNow = True) \
.toTable(sink_table)Checkpoint 5 of 9· Fill the gap
This notebook belongs to a job that has a file arrival trigger. Which trigger option lets Auto Loader process the files that have landed and then stop, so each triggered run finishes once it has caught up?
# Configuration
file_location = "[REPLACE]" # The same URL configured for the file arrival trigger.
checkpoint_location = "[REPLACE]" # a separate URL (outside `file_location`) used to store the Auto Loader checkpoint, which enables exactly-once processing.
sink_table = "[REPLACE]" # Delta table to write to
# Use Auto Loader to discover new files.
# Do not modify code below this line
streamingQuery = spark.readStream.format("cloudFiles") \
.option("cloudFiles.format", "json") \
.option("cloudFiles.schemaLocation", checkpoint_location) \
.option("cloudFiles.useManagedFileEvents","true") \
.load(file_location) \
.writeStream \
.option("checkpointLocation", checkpoint_location) \
.trigger( ? = True) \
.toTable(sink_table)The file arrival trigger only says that files have arrived. With availableNow, Auto Loader uses its checkpoint to process only the files it has not seen before, then stops, so each triggered run ends. A query that keeps running would hold compute between file drops, which is what the file arrival trigger is meant to avoid.
Source: docs.databricks.comSources7
5.Cooldown and debounce: controlling how often events become runs
Every new file counts as an event, but you rarely want one run per file. File arrival and table update triggers both have two advanced settings that control how events turn into runs. They solve different problems, and confusing them is easy.
| Option | Pattern | Behavior | Use it when |
|---|---|---|---|
| Minimum time between triggers in seconds | Cooldown | After a run completes, new events cannot start another run until the interval has passed | Arrivals are frequent and you want to limit how often runs (and compute start-ups) happen |
| Wait after last change in seconds | Debounce | Waits this long after the latest event before starting a run, and each new event restarts the timer | Files or updates arrive in bursts and each burst should be handled in a single run |
Use the cooldown to cap how often runs happen. Setting Minimum time between triggers to 900 means that after each run completes, the trigger waits 15 minutes before starting another, however many files arrive in the meantime. Files that arrive during the cooldown are not lost. They start the next run once the interval has passed. This is not the same as maximum concurrent runs. That setting stops runs overlapping, but a new run can still start the moment the previous one ends, so it does not limit how often runs happen.
Use the debounce to treat a burst as one batch. Suppose a vendor uploads 200 files within about three minutes, and a new batch starts roughly every few minutes or more. Set Wait after last change to a value longer than the gap between files in a batch, but shorter than the gap between batches, for example 60 seconds. The run then starts only after 60 quiet seconds, so it does not start halfway through a batch, and two separate batches do not merge into one run.
The two settings can be combined. With a 900-second minimum and a 60-second wait, the trigger waits for a batch to finish landing and still starts no more than one run every 15 minutes. For a table update trigger, the order is to wait out the minimum time first and then wait after the last change. Take a 120-second minimum and a 60-second wait, and count from the moment the previous run completes. The first update arrives at 5 seconds and the second at 115 seconds. The 120-second minimum is still running at 115 seconds, so nothing starts yet. Once it has elapsed, the trigger waits 60 seconds after the last update, which came at 115 seconds. 115 plus 60 gives 175, so the run starts no earlier than 175 seconds.
Checkpoint 6 of 9· Match them up
Three jobs each have a different problem with how often they run. Match each problem to the setting that solves it.
Tap a term, then the definition that fits it.
Minimum time between triggers is a cooldown: after a run completes, new events wait until the interval has passed, which caps how often runs happen. Wait after last change is a debounce: each new event restarts the timer, so a burst of files becomes one run. Maximum concurrent runs only stops runs from overlapping. It does not limit how often they happen.
“Use this option to cap how frequently runs are created so that frequent arrivals don't create back-to-back runs.”Source: docs.databricks.com
Checkpoint 7 of 9· Exam question
An ingestion job is triggered by file arrivals into a landing volume, but the upstream vendor uploads a batch of 200 small files within a 2-3 minute window rather than a single file. Without additional configuration, the job could start multiple times during that window, once for early files and again for later ones. Which setting should the team adjust on the file arrival trigger so the job waits until the batch has fully landed before starting a single run?
Correct answer: B — Increase wait_after_last_change_seconds so the run is delayed until a period passes with no new file arrivals, with each new file resetting that countdown.
- A. A post-run cooldown controls how soon the next run can start after a run finishes, but it does not delay the current run to wait for a batch that is still landing, so files arriving mid-batch could still split across runs.
- B. A wait-after-last-change delay resets every time a new file arrives, so it naturally holds off starting a run until the whole rapid batch has finished landing, which is exactly the debouncing behavior the scenario needs.
- C. A fixed cron interval runs on a wall-clock schedule unrelated to when files actually finish arriving, so it could still split a batch across runs or leave a run waiting even when no files are present.
- D. A for-each loop changes how files are processed once a run has already started, but it does nothing to control when the run itself begins relative to a still-arriving batch of files.
Checkpoint 8 of 9· Exam question
A support team receives a steady flood of small log files that arrive continuously all day into a monitored volume. Every arrival is a valid trigger event, but the downstream cluster is expensive to start, and the team wants the job to run at most once every 30 minutes even if files keep arriving faster than that. Which configuration achieves this without abandoning event-driven triggering?
Correct answer: A — Set Minimum time between triggers to 1800 seconds, so that after each run completes the trigger waits that long before starting another run.
- A. The Minimum time between triggers setting limits the job to at most one run per interval, so with 1800 seconds the trigger waits 30 minutes after each run completes before starting another, even if files keep arriving, while the job stays a file arrival (event-driven) trigger.
- B. Wait after last change is a debounce timer that restarts with every new file and starts a run only after the quiet period elapses. With files arriving all day that quiet period may never elapse, so it does not give a steady 30-minute cadence; it suits batched arrivals, not capping run frequency.
- C. A cron schedule would produce a 30-minute cadence, but it replaces file arrival triggering with purely time-based triggering, and the team explicitly wants to keep reacting to file arrivals.
- D. Maximum concurrent runs only controls overlap between active runs of the same job. Once a run finishes, the next arrival can start a new run immediately, so it does not guarantee any minimum spacing between runs.
6.Table update triggers: any table or all tables
A table update trigger starts a job when the tables it reads from change. You don't need a cluster that runs all the time, and you don't need to know which process writes to those tables. The trigger watches for data changes such as updates, merges and deletes on up to 10 tables. When you select more than one table, choose under Trigger when whether a run starts when Any table is updated or only when All tables are updated. Use All tables when a job joins several upstream tables and should only run once all of them have new data.
The trigger can monitor:
- Unity Catalog Delta and Iceberg managed tables
- Unity Catalog external tables backed by Delta Lake
- materialized views and streaming tables
- Unity Catalog views or metric views built on supported tables
- OpenSharing objects and system tables
For a view, the trigger watches the tables the view depends on, and those tables count toward the limit of 10. A run can therefore start for changes that the view's own filter excludes. Views that use read_files, or that depend on tables outside Unity Catalog or on federated tables, can still be added, but changes to those dependencies never start a run.
Permissions are checked against the job's Run as principal, not against whoever created the trigger. That principal needs SELECT on every monitored object, and for Unity Catalog tables also USE CATALOG and USE SCHEMA. Without them the trigger fails to evaluate, and the job does not run. Add a failure notification on the job so you find out when this happens. Use Test trigger to check the setup before saving.
Table update triggers also give the job information about what changed. They add dynamic value references you can use as job parameters. {{job.trigger.table_update.updated_tables}} is a JSON list of the tables updated since the last run. Per-table references give the commit timestamp and version that started the run, for example {{job.trigger.table_update.commit_timestamp.iso_datetime}} when only one table is monitored. A task can use these to read only the changes since the last run.
Checkpoint 9 of 9· Check yourself
An engineer adds a table update trigger to a job that runs as a service principal. The trigger monitors one managed Delta table, and the engineer has SELECT on that table. An upstream process runs MERGE statements against the table every hour, but the job never starts. What is the most likely cause?
The trigger reads the table's metadata and change history as the job's Run as principal, not as the person who created it. If that principal lacks SELECT (and, for Unity Catalog tables, USE CATALOG and USE SCHEMA), the trigger fails to evaluate and no run starts. Merges count as data changes, and the trigger does not need a cluster that runs all the time.
“If the Run as principal does not have SELECT on a monitored object, the trigger fails to evaluate and the job does not run.”Source: docs.databricks.com
Sources8
Sources
(9)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.https://docs.databricks.com/aws/en/jobs/triggersOfficial docs
“By default, only a single run of a job can be active at a time.”
↩︎ Trigger types and the rules every trigger shares“Runs are skipped when they exceed the configured max concurrency for a job.”
↩︎ Trigger types and the rules every trigger shares“Any currently active runs continue, but the trigger no longer starts new runs.”
↩︎ Trigger types and the rules every trigger shares“A continuous trigger cannot be combined with any other trigger because the job already runs continuously.”
↩︎ Trigger types and the rules every trigger shares“To keep the job always running, trigger another job run whenever a job run completes or fails.”
↩︎ Exam trap 1“Continuous | To keep the job always running, trigger another job run whenever a job run completes or fails.”
↩︎ Checkpoint“To keep the job always running, trigger another job run whenever a job run completes or fails.”
↩︎ Checkpoint - 2.
“By default, it only runs when you manually start it, but you can also configure it to run automatically.”
↩︎ Trigger types and the rules every trigger shares - 3.https://docs.databricks.com/aws/en/jobs/scheduledOfficial docs
“You cannot specify the time for the first run for a simple schedule.”
↩︎ Scheduled triggers: simple intervals and Quartz cron“Optionally select the Show Cron Syntax checkbox to display and edit the schedule in Quartz Cron Syntax.”
↩︎ Scheduled triggers: simple intervals and Quartz cron“To run at every hour (absolute time), choose UTC.”
↩︎ Scheduled triggers: simple intervals and Quartz cron“Databricks enforces a minimum interval of 10 seconds between subsequent runs triggered by the schedule of a job”
↩︎ Scheduled triggers: simple intervals and Quartz cron“The job scheduler is not intended for low-latency jobs.”
↩︎ Scheduled triggers: simple intervals and Quartz cron“If you select a time zone that observes daylight saving time, an hourly job is skipped or might appear to be delayed”
↩︎ Exam trap 3 - 4.
“0 0 9 * * ? runs the job every day at 9:00 AM UTC.”
↩︎ Scheduled triggers: simple intervals and Quartz cron - 5.https://docs.databricks.com/aws/en/jobs/continuousOfficial docs
“Databricks recommends using continuous mode for always-on streaming workloads.”
↩︎ Continuous mode: always one run active“There can be only one running instance of a continuous job.”
↩︎ Continuous mode: always one run active“You cannot use retry policies in a continuous job.”
↩︎ Continuous mode: always one run active“You cannot use task dependencies with a continuous job.”
↩︎ Continuous mode: always one run active“You can additionally configure retries at the task level by setting the Task retry mode to On failure.”
↩︎ Continuous mode: always one run active“This delay should be less than 60 seconds.”
↩︎ Continuous mode: always one run active - 6.https://docs.databricks.com/aws/en/jobs/run-nowOfficial docs
“if a continuous trigger is active, the Run now button is replaced by a Restart run button.”
↩︎ Continuous mode: always one run active - 7.
“This feature is useful when a scheduled job's efficiency is compromised by irregular new data arrivals.”
↩︎ File arrival triggers on volumes and external locations“File arrival triggers make a best effort to check for new files every minute”
↩︎ File arrival triggers on volumes and external locations“A file arrival trigger recursively checks for new files in all subdirectories of the configured location.”
↩︎ File arrival triggers on volumes and external locations“You must have READ permission on the storage location and CAN MANAGE permissions on the job.”
↩︎ File arrival triggers on volumes and external locations“Auto Loader incrementally and efficiently processes new files with exactly-once guarantees.”
↩︎ File arrival triggers on volumes and external locations“Note that foreachBatch provides only at-least-once processing guarantees.”
↩︎ File arrival triggers on volumes and external locations“Limits the job to at most one run per this interval (a cooldown between runs).”
↩︎ Cooldown and debounce: controlling how often events become runs“Waits this long after the most recent file arrives before starting a run, and each new arrival resets the timer (debouncing).”
↩︎ Cooldown and debounce: controlling how often events become runs“Limits the job to at most one run per this interval (a cooldown between runs).”
↩︎ Exam trap 2“Use this option to cap how frequently runs are created so that frequent arrivals don't create back-to-back runs.”
↩︎ Checkpoint - 8.
“then waits the set amount of time after the last change”
↩︎ Cooldown and debounce: controlling how often events become runs“The minimum time to wait to trigger a run after a previous run completes.”
↩︎ Cooldown and debounce: controlling how often events become runs“The trigger can run when one table updates, or when all tables being monitored by the trigger are updated.”
↩︎ Table update triggers: any table or all tables“You can select up to 10 managed or Delta tables per trigger.”
↩︎ Table update triggers: any table or all tables“It is possible for a job run to be triggered for data changes that are filtered out by the view definition.”
↩︎ Table update triggers: any table or all tables“If the Run as principal does not have SELECT on a monitored object, the trigger fails to evaluate and the job does not run.”
↩︎ Table update triggers: any table or all tables“If the Run as principal does not have SELECT on a monitored object, the trigger fails to evaluate and the job does not run.”
↩︎ Exam trap 4
Also cited
- https://docs.databricks.com/aws/en/jobsOfficial docs
“A trigger is a mechanism that initiates running a job based on specific conditions or events.”
↩︎ Key concept