<?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 Asset Bundles pause_status Across Different Environments in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/asset-bundles-pause-status-across-different-environments/m-p/95792#M39174</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Question probably around best practices, but curious if someone else has dealt with a similar situation. I have 2 Databricks workspaces - one for Dev and one for Prod. Had to be two workspaces because Azure Landing Zones had to be air gapped from each other. My workspaces have a few DLT pipelines and their associated jobs with schedules.&lt;/P&gt;&lt;P&gt;I've set up deployments through Asset Bundles and all that works splendidly. Now a requirement is to have some pipelines running only DEV and some running only on PROD. In my &lt;EM&gt;databricks.yml&lt;/EM&gt;, I currently just use a single variable that I control for each environment on my deployment pipeline, but this applies to all jobs in that environment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;variables:
  pauseStatus:
    description: Is pipeline "PAUSED"/"UNPAUSED"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which I refer to in each of my jobs' YAML as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;schedule:
  quartz_cron_expression: 0 0 7 * * ?
  pause_status: ${var.pauseStatus}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is then subsequently referred to in my deployment step as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks bundle deploy -t ${{variables.target}} -p DEFAULT 
--var="pauseStatus=${{variables.pauseStatus}}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only method I can think of is multiple variables/parameters for each job with it's own statuses that I pass down to the Asset Bundles deployment step. Which can quickly grow out of control:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks bundle deploy -t ${{variables.target}} -p DEFAULT 
--var="pauseStatusJob1=${{variables.pauseStatusJob1}}"
--var="pauseStatusJob1=${{variables.pauseStatusJob2}}"
--var="pauseStatusJob1=${{variables.pauseStatusJob3}}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a more intuitive and scalable way of achieving granular control over job pause statuses across different environments?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 23:58:07 GMT</pubDate>
    <dc:creator>RangaSarangan</dc:creator>
    <dc:date>2024-10-23T23:58:07Z</dc:date>
    <item>
      <title>Asset Bundles pause_status Across Different Environments</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-pause-status-across-different-environments/m-p/95792#M39174</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Question probably around best practices, but curious if someone else has dealt with a similar situation. I have 2 Databricks workspaces - one for Dev and one for Prod. Had to be two workspaces because Azure Landing Zones had to be air gapped from each other. My workspaces have a few DLT pipelines and their associated jobs with schedules.&lt;/P&gt;&lt;P&gt;I've set up deployments through Asset Bundles and all that works splendidly. Now a requirement is to have some pipelines running only DEV and some running only on PROD. In my &lt;EM&gt;databricks.yml&lt;/EM&gt;, I currently just use a single variable that I control for each environment on my deployment pipeline, but this applies to all jobs in that environment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;variables:
  pauseStatus:
    description: Is pipeline "PAUSED"/"UNPAUSED"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which I refer to in each of my jobs' YAML as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;schedule:
  quartz_cron_expression: 0 0 7 * * ?
  pause_status: ${var.pauseStatus}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is then subsequently referred to in my deployment step as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks bundle deploy -t ${{variables.target}} -p DEFAULT 
--var="pauseStatus=${{variables.pauseStatus}}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only method I can think of is multiple variables/parameters for each job with it's own statuses that I pass down to the Asset Bundles deployment step. Which can quickly grow out of control:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks bundle deploy -t ${{variables.target}} -p DEFAULT 
--var="pauseStatusJob1=${{variables.pauseStatusJob1}}"
--var="pauseStatusJob1=${{variables.pauseStatusJob2}}"
--var="pauseStatusJob1=${{variables.pauseStatusJob3}}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a more intuitive and scalable way of achieving granular control over job pause statuses across different environments?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 23:58:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-pause-status-across-different-environments/m-p/95792#M39174</guid>
      <dc:creator>RangaSarangan</dc:creator>
      <dc:date>2024-10-23T23:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles pause_status Across Different Environments</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-pause-status-across-different-environments/m-p/95798#M39175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/121389"&gt;@RangaSarangan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We have faced same issue and solved using databricks workflow API and json file for job metadata that consist job and thier respective status for each env.&lt;/P&gt;&lt;P&gt;You can create azure devops that run after your cicd pipeline and change the job status accordingly&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 04:53:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-pause-status-across-different-environments/m-p/95798#M39175</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2024-10-24T04:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles pause_status Across Different Environments</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-pause-status-across-different-environments/m-p/96901#M39360</link>
      <description>&lt;P&gt;Yep looks like that will be the only option here. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 01:59:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-pause-status-across-different-environments/m-p/96901#M39360</guid>
      <dc:creator>RangaSarangan</dc:creator>
      <dc:date>2024-10-31T01:59:02Z</dc:date>
    </item>
  </channel>
</rss>

