12-05-2024 11:01 AM
Is it possible to create a repository with a Databricks asset bundle that includes the following pipelines?
Can you create 5 YAML files that accomplish the following:
12-05-2024 11:34 AM
Hi @smit_tw ,
yes, it is possible to do so, here is the sample yml:
resources:
jobs:
sample_job:
name: sample_job
tasks:
- task_key: JobTask
run_job_task:
job_id: 1094194179990459
- task_key: DltTask1
depends_on:
- task_key: JobTask
pipeline_task:
pipeline_id: da5fa00c-33b6-4850-8ea3-53f6e8d4b0e9
full_refresh: false
- task_key: DltTask2
depends_on:
- task_key: DltTask1
pipeline_task:
pipeline_id: da5fa00c-33b6-4850-8ea3-53f6e8d4b0e9
full_refresh: false
queue:
enabled: trueThe possible improvement is to use lookup to to reference jobs and pipelines by their name rather than their ids.
Check this discussion:
https://community.databricks.com/t5/data-engineering/getting-job-id-dynamically-to-create-another-jo...
12-05-2024 11:34 AM
Hi @smit_tw ,
yes, it is possible to do so, here is the sample yml:
resources:
jobs:
sample_job:
name: sample_job
tasks:
- task_key: JobTask
run_job_task:
job_id: 1094194179990459
- task_key: DltTask1
depends_on:
- task_key: JobTask
pipeline_task:
pipeline_id: da5fa00c-33b6-4850-8ea3-53f6e8d4b0e9
full_refresh: false
- task_key: DltTask2
depends_on:
- task_key: DltTask1
pipeline_task:
pipeline_id: da5fa00c-33b6-4850-8ea3-53f6e8d4b0e9
full_refresh: false
queue:
enabled: trueThe possible improvement is to use lookup to to reference jobs and pipelines by their name rather than their ids.
Check this discussion:
https://community.databricks.com/t5/data-engineering/getting-job-id-dynamically-to-create-another-jo...
12-06-2024 06:03 AM
Hello @filipniziol , Thank you so much that link is what I was looking for.
12-06-2024 08:18 AM
Hi @smit_tw,
Great! If this resolves your question, please consider marking it as the solution. It helps others in the community find answers more easily. 😊
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now