01-31-2024 01:21 PM
Hello, I'm looking to create a job which is linked to a delta live table.
Given the job code like this:
my_job_name:
name: thejobname
schedule:
quartz_cron_expression: 56 30 12 * * ?
timezone_id: UTC
pause_status: UNPAUSED
tasks:
- task_key: the-task-name
pipeline_task:
pipeline_id: thepipelineuuidhere
full_refresh: false
Is there a way to just use the pipeline name? In the same yml file, I have the pipeline declared. For now, I've deployed, then copied the ID and pasted it in the yml. But that won't help on a fresh install. Is there some way to dynamically get that ID?
I tried just putting the name of the pipeline, but that doesn't work (it can't find the pipeline).
02-01-2024 11:41 PM
01-31-2024 11:03 PM
Hey @RyHubb
See the Delta Live Tables API's create pipeline request payload reference: https://docs.databricks.com/api/workspace/pipelines/create
02-01-2024 05:13 AM
Yeah, I know how to create a pipeline (I have it defined in the same yaml file), but that doesn't explain how to create a JOB that kicks off a pipeline that is created in the same yaml file. You need the ID of the pipeline to create the job. As far as I know, the ID is generated when you create the pipeline. So how do I reference the pipeline's ID if I don't know what it is?
02-01-2024 11:03 PM
@RyHubb can you attach the complete yaml file for me to check once?
02-01-2024 11:41 PM
02-02-2024 04:51 AM - edited 02-02-2024 04:58 AM
@Yeshwanth , that worked, thank you.
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