databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Complex type of variable #1538

Closed dinjazelena closed 2 months ago

dinjazelena commented 3 months ago

Hey, so i managed to use complex type of variable to reference for example cluster configuration, but my tasks are same for each target, so wanted to put that as constant variable like here: image But then when i reference it in job definition: image

I get: Error: unable to determine directory for job inference: no file in location

inference is job name here.

cli 0.222.0

dinjazelena commented 3 months ago

Now i cannot define globally in resources, because i have multiple resources with multiple owners, so it would try to deploy all at once. So for me single resource is single job. Just noticed that S in front variable reference., but same thing without it as well.

marcinmilewski1 commented 2 months ago

I think this may be same issue as in https://github.com/databricks/cli/issues/1568 (you have whl library specified)

shreyas-goenka commented 2 months ago

This was fixed in https://github.com/databricks/cli/pull/1573 which was released in CLI version v0.223.2. Thanks for reporting!