I'm using the Databricks CLI to deploy an asset bundle for a job. I'm attempting to setup the configuration such that the "dev" target does not have a trigger on it, and the "prod" target does. Essentially the dev job is not scheduled to run and the prod job is. I'd really like there to not even be a schedule on the dev job, rather than having it simply paused.
Is this possible?
variables:
trigger:
description: The trigger information
type: complex
default:
pause_status: UNPAUSED
periodic:
interval: 1
unit: DAYS
resources:
jobs:
test_20241118:
name: ${bundle.target} - test_20241118
trigger: ${var.trigger}
tasks:
- task_key: hello-task
notebook_task:
notebook_path: ${workspace.file_path}/hello_world/hello
source: WORKSPACE
targets:
dev:
default: true
workspace:
host: https://my-dev-workspace.azuredatabricks.net
variables:
trigger: # I WANT THIS TO ACTUALLY NOT EVEN EXIST
description: The trigger information
type: complex
default:
pause_status: PAUSED
periodic:
interval: 1
unit: DAYS
prod:
default: true
workspace:
host: https://my-prod-workspace.azuredatabricks.net