eniwoke
Contributor II

Hi @yvesbeutler here is a sample way I did  it using databricks asset bundles for notebook tasks

resources:
  jobs:
    chained_jobs:
      name: chained-jobs
      tasks:
        - task_key: main
          notebook_task:
            notebook_path: /Workspace/Users/sample/Deploying Data Assets
              Bundle with VSCode Add-in/pass_task_2
            source: WORKSPACE
        - task_key: failing_task
          depends_on:
            - task_key: main
          notebook_task:
            notebook_path: /Workspace/Users/sample/Deploying Data Assets
              Bundle with VSCode Add-in/fail_task_1
            source: WORKSPACE
        - task_key: pass_task-1
          depends_on:
            - task_key: main
          notebook_task:
            notebook_path: /Workspace/Users/sample/Deploying Data Assets
              Bundle with VSCode Add-in/pass_task_1
            source: WORKSPACE
        - task_key: pass_task-2
          depends_on:
            - task_key: pass_task-1
            - task_key: failing_task
          run_if: AT_LEAST_ONE_SUCCESS
          notebook_task:
            notebook_path: /Workspace/Users/sample/Deploying Data Assets
              Bundle with VSCode Add-in/pass_task_2
            source: WORKSPACE
      queue:
        enabled: true
      performance_target: STANDARD​

 It should still be similar to your use case, Kindly tell me if it works for you 🙂 

eniwoke_0-1753110787807.png

 

Eni

View solution in original post