In Databricks Lakeflow/Jobs, the 'Run if dependencies' setting is a single field applied collectively to all of a task's listed dependencies (options include All succeeded, At least one succeeded, None failed, All done, At least one failed, All failed) — there is no way to assign a distinct required outcome to each individual dependency of the same task. Because of this, a mixed requirement such as 'Task A succeeded AND Task B failed' cannot be expressed directly through per-dependency Run if settings. The documented approach is to set the Run if condition to 'All done' for both Task A and Task B so that evaluation proceeds regardless of whether each upstream task succeeded or failed, and then use an If/else condition task (which evaluates a boolean expression against job parameters, task parameters, or task values published via dbutils.jobs.taskValues) to explicitly check that Task A succeeded and Task B failed, gating Task C's execution on that evaluated condition.
Community Discussion