{{job.trigger.file_arrival.location}} only work when every trigger of the job has the same type.Problem
Until now a Lakeflow job could have only one trigger: one trigger field or one schedule, and the old trigger field did not support cron. In projects this limit shows up in two situations.
The first is a job with a table update or file arrival trigger. That's a good choice, because the job starts when the data is ready, not at a fixed time. But if the trigger doesn't fire, for example someone paused it and forgot to resume it, the job never starts and there's no error, because no run ever started. A backup schedule meant a second job.
The second is files that arrive in several locations, for example two volumes. One file arrival trigger watches one location with its subfolders, so each separate location meant a separate job with the same task, and with a shared parent folder the task couldn't tell which subfolder the file came from.
On the same day Lakeflow got a second change: a pipeline can run as an account group. I covered it separately in Lakeflow: a pipeline that doesn't belong to one person.
How it works
A job can have several triggers of the same or different types. A run starts when any active trigger fires. The typical example from the docs: table update as the main trigger and a schedule as the backup. You can also watch two file locations with two file arrival triggers.
A backup schedule is still a second run, not "a run only if the other one didn't start". The cron also starts the job on days when the table update has already processed the data, so the task has to be idempotent.
It helps when the data is there but the trigger didn't fire (for example, someone paused the table update trigger and forgot to resume it).
What multiple triggers won't do is notice that the source stopped delivering data. When nothing reaches the table, the table update trigger doesn't fire, and the backup cron recomputes the same stale data and ends with SUCCESS, so the report is still out of date, just with a green run. For data freshness an alert works better; see "When NOT to use it".
What's worth knowing before you turn it on:
- The feature is a Beta behind a toggle. A workspace admin turns it on in Previews with the Multiple Triggers setting.
- During the Beta, a job can have up to five triggers. Regardless of the preview, a workspace has a limit of 12,000 active triggers (paused ones don't count).
- Each trigger has its own Pause/Resume. In the UI these are separate controls in Schedules & Triggers, in the API it's the
pause_statusfield on the array element. - A
continuoustrigger doesn't combine with anything. A continuous job runs all the time anyway, so thecontinuoustrigger must be the only one.

Workspace Previews page: without this toggle a job with a triggers array fails with FEATURE_DISABLED.
In the Jobs API it's a new triggers array in JobSettings. The docs say 2.1 and later, and the code uses the current version, 2.2. Each element has exactly one trigger type: table_update, file_arrival, schedule, periodic, continuous, job_completion, or model for a model update trigger. It can also have an optional pause_status. The job completion trigger arrived on 3 November 2026 (Beta) and has its own Job Completion Triggers toggle on the Previews page. Below is the job from the first notebook, with two file arrival triggers on two folders of a volume. catalog, schema, TASK_NB, LANDING and api are created in the notebook's first cell.
✓ Tested on Premium. On Free Edition (2026-10-17) I only checked that a job with a triggers array can be created and read (jobs/create, jobs/get); I didn't check there whether a new file starts a run.
job = {
"name": "news134_multiple_triggers",
"tasks": [{
"task_key": "log_trigger",
"notebook_task": {
"notebook_path": TASK_NB,
"base_parameters": {"log_table": f"{catalog}.{schema}.trigger_log",
"trigger_type": "{{job.trigger.type}}",
"location": "{{job.trigger.file_arrival.location}}"},
},
}],
"triggers": [
{"file_arrival": {"url": LANDING + "a/"}},
{"file_arrival": {"url": LANDING + "b/"}},
],
}
job_id = api.do("POST", "/api/2.2/jobs/create", body=job)["job_id"]
print("job created")
How do you know which trigger started a run? The trigger field in the jobs/runs/get response only tells you the trigger type (TABLE, FILE_ARRIVAL, PERIODIC and so on), and the task reads the same value, in lower case, from {{job.trigger.type}} (the full list of such values is in the docs). With two file arrival triggers, {{job.trigger.file_arrival.location}} returns the folder of the trigger that started the run: in my lab a file in a/ started a run after 13 s and a file in b/ after 12 s, and the task logged …/landing/a/ and …/landing/b/. But when I added a table update trigger to the same job, the update failed with Invalid reference: 'job.trigger.file_arrival.location'. File arrival trigger references can only be used when every trigger is a file arrival trigger.
In the system.lakeflow.jobs system table, a job with two or more triggers has trigger_type = MULTIPLE, an empty trigger column, and you read the configuration from the triggers array. If you monitor jobs with system tables, fix the queries and alerts on trigger_type or trigger before turning on multiple triggers, because they will stop seeing these jobs.
Code for this article on GitHub →notebook and a step-by-step README · lakeflow-multiple-triggers
Three rules from the docs that decide how you write automation:
- Don't send
triggersin the same request as the legacyschedule,triggerorcontinuous. - Updating
triggerswithjobs/updatereplaces the entire array. You can't "add" or "resume" a single trigger by sending only that one. - In Declarative Automation Bundles (formerly Databricks Asset Bundles) the same field is
triggerson the job resource (job.triggers), with the same keys as in the API. The bundle schema has the field from Databricks CLI 1.13.0 (1.12.1 doesn't have it), but only 1.15.0 fixedtable_updatenot converging on the direct engine.
The second notebook shows how to resume one trigger without deleting the others: read the array, change one element, send the whole array back.
◆ Requires a workspace with the Multiple Triggers preview enabled. Tested on Premium.
triggers = api.do("GET", "/api/2.2/jobs/get", query={"job_id": job_id})["settings"]["triggers"]
for t in triggers:
if "schedule" in t:
t["pause_status"] = "UNPAUSED"
api.do("POST", "/api/2.2/jobs/update", body={"job_id": job_id, "new_settings": {"triggers": triggers}})
for t in api.do("GET", "/api/2.2/jobs/get", query={"job_id": job_id})["settings"]["triggers"]:
print([k for k in t if k != "pause_status"][0], t["pause_status"])
The job in the second notebook has two paused triggers, a table update and a schedule. After this update it still has both and only the schedule is resumed (table_update PAUSED, schedule UNPAUSED). Send just one element and only the schedule is left:

Lab result: after jobs/update with one element, the job only has the schedule left.
This protects the other triggers from being deleted, but not from a concurrent change. The Jobs API has no versioning: jobs/update takes only job_id, new_settings and fields_to_remove, so if someone else changes the triggers between your jobs/get and jobs/update, say another script or a person in the UI, your write overwrites their change without an error. In my lab two scripts read the same array of a job with two schedules: the first resumed the 06:00 schedule, the second changed the time of the other one, and after both writes the 06:00 schedule was paused again. Reading the job again won't catch this, because it only shows your own change. So change a job's triggers from one place: a bundle, one script, or a CI step that never runs in parallel.
In production, set the backup schedule to UNPAUSED: a paused one does nothing until someone notices the missing run.
Two details of an array element are easy to miss. pause_status sits on the array element, not inside schedule as in the legacy schedule field. And schedule in an element has only two fields, both required: quartz_cron_expression and timezone_id.
Pitfalls
Updating the job and legacy fields
- An update replaces the whole
triggersarray, so a script that sends only the trigger it resumes deletes the others (the second notebook shows it). The safe way:jobs/get, change the array you got back, andjobs/updatewith the full array, and only from one place (the race is described above). - A job with
triggerscan't be changed through the legacyschedule,triggerorcontinuousfields, even with one trigger left in the array: the API rejectsjobs/updatewithschedule, also together withfields_to_remove: ["triggers"], andjobs/resetwithscheduleinstead oftriggers(This job has multiple triggers configured via 'triggers'. Use the 'triggers' field to manage them; 'schedule', 'trigger', and 'continuous' cannot be set.). Going back to the legacy field takes twojobs/updatecalls: first withfields_to_remove: ["triggers"], then withscheduleand an explicitpause_status. In between the job has no trigger at all, so if the second call fails the job never starts and reports no error; prepare theschedulebody beforehand and check the job withjobs/getat the end.
Bundles and CLI
mode: developmentdoes not pause thetriggersarray, although per the docs it pauses all schedules and triggers. With CLI 1.13.0, 1.20.0 and 1.21.0 thetriggersarray isn't paused, and in my lab (CLI 1.20.0) the dev job started after anINSERTinto the table, so on dev setpause_status: PAUSEDyourself (thetrigger_pause_statuspreset doesn't cover this array either).- In a bundle, going back from
triggerstoschedulein one deploy fails with the same error as the API (This job has multiple triggers configured via 'triggers'…, CLI 1.16.1, direct engine). A deploy with no trigger at all, followed by a deploy withschedule, works; moving fromscheduletotriggerstakes one deploy. - A deploy undoes a manual pause: a trigger paused in the UI or through the API goes back to the YAML state (CLI 1.20.0). Set a longer pause, say during a source outage, as
pause_status: PAUSEDin the YAML in the repo. - Without the preview a job with
triggerscan't be created (jobs/create, orjobs/resetfor an existing job:404 FEATURE_DISABLED). With a bundle,bundle validate(CLI 1.20.0) ends withValidation OK!, and onlybundle deployreturns the error. The preview has to be on in every workspace your CI/CD deploys to. - CLI 1.12.1 only reports
Warning: unknown field: triggers, exits with code 0, and on the first deploy creates a job withtriggers: nullthat never starts on its own (it didn't break an existing job). In CI, pin the CLI version you tested (1.20.0 in my lab) and runbundle validate --strict, which turns that warning into an error.
Concurrency and queueing
- By default a job runs one run at a time, and without queueing a run over the limit gets
SKIPPEDwithout an error. You only get a notification about a skipped run if the job has anon_failurenotification and skipped runs aren't muted. In my lab, with two runs in a row (90 s task,max_concurrent_runs: 1) and queueing on (queue.enabled: true), the second waited 99 s and endedSUCCESS. The queue holds a run for up to 48 hours. Set queueing explicitly, because per the docs the UI enables it for jobs created after 15 April 2024, and in my lab API 2.2 and a bundle enabled it, API 2.1 didn't. - You won't see the collision on dev, because a
mode: developmenttarget with nomax_concurrent_runsset gotmax_concurrent_runs: 4in my lab. To make dev behave like production, setmax_concurrent_runs: 1on the job.
Permissions and run-as
- Per the docs, the run-as identity needs
SELECTon the monitored tables plusUSE CATALOGandUSE SCHEMA. Missing access at creation ends withPERMISSION_DENIED. Per the docs, if run-as losesSELECTlater or you switch the job to another identity, the trigger can't be evaluated and the job doesn't start, and you only find out through anon_failurenotification. - A job can run as an account group (
run_as.group_name), like the pipeline in Lakeflow: a pipeline that doesn't belong to one person. Per the docs, the group has to be assigned to the workspace, it's set by a group member or someone with the Assume permission, and it needs access to everything the job uses:SELECTon the trigger's tables and read access to the notebooks. The API rejects built-in groups (users,admins,account users). Don't deploy the code to/Workspace/Shared, even though the Jobs docs suggest it, because any workspace user can replace it there. I haven't run a job as a group in my lab.
Other
{{job.trigger.file_arrival.location}}and{{job.trigger.table_update.updated_tables}}only work when every trigger of the job has the same type. With a table update and a backup schedule, the task only knows{{job.trigger.type}}.- A change right after the job is created or
triggersis updated may not start a run: in my lab neither a file written right afterjobs/createnor anINSERTright afterjobs/updatestarted one within 10 minutes. I didn't find this in the docs, so the notebooks wait 90 s. - The server adds
condition: ALL_UPDATEDtotable_update, which with two tables starts the job only after both change. If one is enough, setANY_UPDATEDexplicitly.
When NOT to use it
- In production, while it's a Beta that depends on a workspace toggle. If the same bundle goes to dev and prod, until GA I would keep
triggersonly in the dev target, because the first prod deploy without the preview fails withFEATURE_DISABLED. The condition: the base job has no trigger at all,schedulesits in the prod target andtriggersin the dev target. A target doesn't remove a field from the base, so withschedulein the base andtriggersin the dev target,bundle validate(CLI 1.20.0) gives no warning, and onlybundle deployfails withcannot create resources.jobs.orders: The 'triggers' field cannot be set together with any of 'schedule', 'trigger', or 'continuous'. (400 INVALID_PARAMETER_VALUE). Until GA, a backup schedule can be a second, simple job. For missing fresh data an alert works better, for example a SQL alert that checksmax()of the load timestamp column, or Unity Catalog anomaly detection, which watches table freshness. - When different triggers should run completely different logic. Two separate jobs are easier to read than one task that branches on
{{job.trigger.type}}.
This is a bundle with that layout. The base job has no trigger, the dev target gets the triggers array (table update and a paused backup schedule), and the prod target a plain schedule. ${var.catalog} and ${var.schema} are bundle variables.
◆ Requires the Multiple Triggers preview for the dev target; tested on Premium.
bundle:
name: multiple_triggers_demo
variables:
catalog:
default: workspace
schema:
default: dataistheway_triggers
resources:
jobs:
orders:
name: news134_bundle_triggers
tasks:
- task_key: log_trigger
notebook_task:
notebook_path: ./src/log_trigger.py
base_parameters:
log_table: ${var.catalog}.${var.schema}.trigger_log
trigger_type: "{{job.trigger.type}}"
targets:
dev:
mode: development
default: true
resources:
jobs:
orders:
triggers:
- table_update:
table_names: [ "${var.catalog}.${var.schema}.source_orders" ]
- schedule:
quartz_cron_expression: "0 0 6 * * ?"
timezone_id: Europe/Warsaw
pause_status: PAUSED
prod:
resources:
jobs:
orders:
schedule:
quartz_cron_expression: "0 0 6 * * ?"
timezone_id: Europe/Warsaw
The source_orders and trigger_log tables must exist before the deploy (the DDL is in the code README), because a trigger on a table that doesn't exist is rejected when the job is created. In my lab the dev deploy created a job with two triggers and -t prod one with just the schedule; I haven't tested this bundle on Free Edition.
Summary
- A backup schedule in the same job starts a separate run, so the task has to be idempotent, and missing fresh data needs separate monitoring, for example an alert.
- While it's a Beta, keeping the backup schedule in a separate job is safer in production, and in a bundle pin the CLI version you tested and run
bundle validate --strict.
Want more posts? Follow along via RSS or on LinkedIn.



Comments
Quiet on the trail so far. Be the first to comment.