<?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 Re: Exclude a job from bundle deployment in PROD in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/75609#M35004</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello, if you want, you can deploy specific jobs only in the development environment. Since you have only two environments, a straightforward approach is to modify your jobs YAML definition as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    # Define the jobs to be deployed in all environments here

targets:
  dev:
    resources:
      jobs:
        # Define your development-only jobs here&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 24 Jun 2024 18:50:33 GMT</pubDate>
    <dc:creator>giuseppegrieco</dc:creator>
    <dc:date>2024-06-24T18:50:33Z</dc:date>
    <item>
      <title>Exclude a job from bundle deployment in PROD</title>
      <link>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/75603#M35003</link>
      <description>&lt;P&gt;My question is regarding Databricks Asset Bundles. I have defined a &lt;STRONG&gt;databricks.yml&lt;/STRONG&gt;&amp;nbsp;file the following way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bundle:
  name: my_bundle_name

include:
  - resources/jobs/*.yml

targets:
  dev:
    mode: development
    default: true
    workspace:
      host: workspace_url

  prod:
    mode: production
    workspace:
      root_path: /Shared/.bundle/${bundle.name}/${bundle.target}
    run_as:
      service_principal_name: service_principal_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example above I have several individual job YML files defined in the &lt;STRONG&gt;/resources/jobs/ &lt;/STRONG&gt;directory. So the folder contains &lt;STRONG&gt;v1_job.yml&lt;/STRONG&gt;, &lt;STRONG&gt;v2_job.yml&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;v3_job.yml&lt;/STRONG&gt; files. When I execute&amp;nbsp;&lt;STRONG&gt;databricks bundle deploy -t prod&lt;/STRONG&gt;&amp;nbsp;command &lt;STRONG&gt;all&lt;/STRONG&gt; the 3 jobs get deployed. Is there a way to &lt;EM&gt;exclude&amp;nbsp;&lt;/EM&gt;some of the jobs in this case? For example, I only need v3 job to be deployed in prod, even though I need all 3 in dev&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 17:45:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/75603#M35003</guid>
      <dc:creator>ChingizK</dc:creator>
      <dc:date>2024-06-24T17:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a job from bundle deployment in PROD</title>
      <link>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/75609#M35004</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, if you want, you can deploy specific jobs only in the development environment. Since you have only two environments, a straightforward approach is to modify your jobs YAML definition as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    # Define the jobs to be deployed in all environments here

targets:
  dev:
    resources:
      jobs:
        # Define your development-only jobs here&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Jun 2024 18:50:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/75609#M35004</guid>
      <dc:creator>giuseppegrieco</dc:creator>
      <dc:date>2024-06-24T18:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a job from bundle deployment in PROD</title>
      <link>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/111023#M43764</link>
      <description>&lt;P&gt;I have all my job YAML definitions in separate files and I add them using 'include'. Is there a way to then exclude a job from a specific target without having to add the whole YAML definition to the databricks.yml file?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 10:12:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/111023#M43764</guid>
      <dc:creator>Isa1</dc:creator>
      <dc:date>2025-02-24T10:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a job from bundle deployment in PROD</title>
      <link>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/112257#M44150</link>
      <description>&lt;P&gt;I'm also looking for this use case. Have you found any solution? There really should be an "exclude" option at target level.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:24:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/112257#M44150</guid>
      <dc:creator>hiryucodes</dc:creator>
      <dc:date>2025-03-11T09:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a job from bundle deployment in PROD</title>
      <link>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/129617#M48572</link>
      <description>&lt;P&gt;I also need this.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 12:38:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/129617#M48572</guid>
      <dc:creator>Pelle123</dc:creator>
      <dc:date>2025-08-25T12:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a job from bundle deployment in PROD</title>
      <link>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/129621#M48575</link>
      <description>&lt;P&gt;Me too. No clean solution yet. As workaround I implemented first an "extra" control in specific jobs that never should be run in PROD to block execution based on environment variable in all clusters (I don't really like much but it was effective). As a second workaround, only updating pipelines in a customized way to not include jobs from the beginning as explaining first in this topic or deleting them upon being deployed in order to not make your folder code structure too much complex, I don't really like much either xD, but what to do instead?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 13:02:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/exclude-a-job-from-bundle-deployment-in-prod/m-p/129621#M48575</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-08-25T13:02:39Z</dc:date>
    </item>
  </channel>
</rss>

