Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 04:26 AM - edited 09-18-2023 04:28 AM
Hi, thanks for the response! I've tried your suggestions, but I'm still having issues. The job for product_dimension_template definitely exists. It was deployed via the same DAB in which I'm trying to define the `run_job_task`.
I tried two different things for testing:
- Provide the job_id explicitly as an int (not using string substitution).
- Provide the job_id via `${resources.jobs.product_dimension_template.job_id}` as you suggested.
product_dimension_ACDS_product_div:
name: "Product Dimension - ACDS Product Div"
tasks:
- task_key: product_dimension_ACDS_product_div
run_job_task:
job_id: 892367837319872
product_dimension_ACDS_product_div:
name: "Product Dimension - ACDS Product Div"
tasks:
- task_key: product_dimension_ACDS_product_div
run_job_task:
job_id: ${resources.jobs.product_dimension_template.job_id}
- In case (1), I get the following error:
Starting resource deployment
Error: terraform apply: exit status 1
Error: cannot create job: Job 0 does not exist.
with databricks_job.product_dimension_ACDS_product_div,
on bundle.tf.json line 79, in resource.databricks_job.product_dimension_ACDS_product_div:
79: },
- In case (2), I get the following error:
Error: failed to load /Users/t574461/code_saas/fcoe_measure_prototype/conf/bundle.product_dim.yml: error unmarshaling JSON: json: cannot unmarshal string into Go struct field RunJobTask.resources.jobs.tasks.run_job_task.job_id of type int
In one case, it's inferring the job_id as 0 for some reason, and in the other it seems `${resources.jobs.product_dimension_template.job_id}` returns a string when it expects an int.