cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Is there a way to have multiple triggers for a single workflow?

Peter-M
New Contributor II
 
1 ACCEPTED SOLUTION

Accepted Solutions

mhiltner
Databricks Employee
Databricks Employee

You could have a workflow with two tasks, one being a "trigger checker" that could be a super light task scheduled to run every X hours/minutes. This first task would check for your different triggers and define a success criteria for your next task. Then you condition the actual task that you need to execute only if one of these conditions are satisfied. 

View solution in original post

3 REPLIES 3

Felipe
New Contributor II

You could maybe have different workflows with different triggers that call your target/main workflow 

jacolei
New Contributor II

Absolutely, you would design a trigger for one task (eg new file) and another one (eg schedule), then have a third task that runs when both of those tasks complete

mhiltner
Databricks Employee
Databricks Employee

You could have a workflow with two tasks, one being a "trigger checker" that could be a super light task scheduled to run every X hours/minutes. This first task would check for your different triggers and define a success criteria for your next task. Then you condition the actual task that you need to execute only if one of these conditions are satisfied. 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group