<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Databricks Asset Bundle - variables for job trigger in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-variables-for-job-trigger/m-p/99442#M39991</link>
    <description>&lt;P&gt;I'm using the Databricks CLI to deploy an asset bundle for a job.&amp;nbsp; I'm attempting to setup the configuration such that the "dev" target does not have a trigger on it, and the "prod" target does.&amp;nbsp; Essentially the dev job is not scheduled to run and the prod job is.&amp;nbsp; I'd really like there to not even be a schedule on the dev job, rather than having it simply paused.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;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&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 00:35:32 GMT</pubDate>
    <dc:creator>madams</dc:creator>
    <dc:date>2024-11-20T00:35:32Z</dc:date>
    <item>
      <title>Databricks Asset Bundle - variables for job trigger</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-variables-for-job-trigger/m-p/99442#M39991</link>
      <description>&lt;P&gt;I'm using the Databricks CLI to deploy an asset bundle for a job.&amp;nbsp; I'm attempting to setup the configuration such that the "dev" target does not have a trigger on it, and the "prod" target does.&amp;nbsp; Essentially the dev job is not scheduled to run and the prod job is.&amp;nbsp; I'd really like there to not even be a schedule on the dev job, rather than having it simply paused.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;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&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 00:35:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-variables-for-job-trigger/m-p/99442#M39991</guid>
      <dc:creator>madams</dc:creator>
      <dc:date>2024-11-20T00:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundle - variables for job trigger</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-variables-for-job-trigger/m-p/99732#M40077</link>
      <description>&lt;P&gt;in your dev target, you can add mode to pause all trigger.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;targets:
  dev:
    mode: development&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;DAB also have new update,&lt;BR /&gt;you can also use &lt;STRONG&gt;preset&amp;nbsp;&lt;/STRONG&gt; to handle different target setting.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;targets:
  dev:
    presets:
      name_prefix: "testing_"      # prefix all resource names with testing_
      pipelines_development: true  # set development to true for pipelines
      trigger_pause_status: PAUSED # set pause_status to PAUSED for all triggers and schedules
      jobs_max_concurrent_runs: 10 # set max_concurrent runs to 10 for all jobs
      tags:
        department: finance&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; Ref:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/deployment-modes.html" target="_blank"&gt;Databricks Asset Bundle deployment modes | Databricks on AWS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 06:50:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-variables-for-job-trigger/m-p/99732#M40077</guid>
      <dc:creator>SigaEd</dc:creator>
      <dc:date>2024-11-22T06:50:13Z</dc:date>
    </item>
  </channel>
</rss>

