CertSafari
    Databricks Certified Data Engineer Associate· Lessons

    Domain 4 · Lesson 19/33

    Lakeflow Jobs triggers: schedules, continuous, file arrival and table update

    Implement job schedules using Lakeflow Jobs with an understanding of trigger types (scheduled, file arrival, and table update)

    20 min read
    4% of exam
    9 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    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 types available on a Lakeflow job
    Trigger typeWhat starts a run
    ScheduledA time-based schedule (simple interval or advanced cron)
    ContinuousThe previous run completing or failing, so the job is always running
    File arrivalNew files in a monitored Unity Catalog storage location
    Table updateUpdates to monitored source tables
    Model updateA 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.

    Sources12

    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.

    That advanced schedule as it appears in a job's JSON definition: a Quartz cron expression, a time zone, a pause status and the concurrency limitjson
    "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?

    Sources34

    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?

    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?

    Sources56

    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.

    Notebook code for a job with a file arrival trigger: Auto Loader reads only the new files at the trigger's path and stops when it has caught uppython
    # 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)

    Sources7

    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.

    The two advanced rate-control options on file arrival and table update triggers
    OptionPatternBehaviorUse it when
    Minimum time between triggers in secondsCooldownAfter a run completes, new events cannot start another run until the interval has passedArrivals are frequent and you want to limit how often runs (and compute start-ups) happen
    Wait after last change in secondsDebounceWaits this long after the latest event before starting a run, and each new event restarts the timerFiles 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.

    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?

    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?

    Sources78

    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?

    Sources8

    Sources

    (9)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “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. 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. 3.
      “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. 5.
      “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
    5. 6.
      “if a continuous trigger is active, the Run now button is replaced by a Restart run button.”
      ↩︎ Continuous mode: always one run active
    6. 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
    7. 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

    Spotted a mistake, or was something unclear? Tell us.