<?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 does not create new job if I change configuration of existing Databricks yam in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/88922#M37663</link>
    <description>&lt;P&gt;When deploying multiple jobs using the `Databricks.yml` file via the asset bundle, the process either overwrites the same job or renames it, instead of creating separate, distinct jobs.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 20:23:44 GMT</pubDate>
    <dc:creator>sandy311</dc:creator>
    <dc:date>2024-09-06T20:23:44Z</dc:date>
    <item>
      <title>Databricks asset bundle does not create new job if I change configuration of existing Databricks yam</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/88922#M37663</link>
      <description>&lt;P&gt;When deploying multiple jobs using the `Databricks.yml` file via the asset bundle, the process either overwrites the same job or renames it, instead of creating separate, distinct jobs.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 20:23:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/88922#M37663</guid>
      <dc:creator>sandy311</dc:creator>
      <dc:date>2024-09-06T20:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundle does not create new job if I change configuration of existing Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89021#M37671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119632"&gt;@sandy311&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;could you share your databricks.yml file?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are you sure you used unique job ids when defining your jobs?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filipniziol_0-1725734709241.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11007i71CE37CBD9CBA621/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filipniziol_0-1725734709241.png" alt="filipniziol_0-1725734709241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 18:46:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89021#M37671</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-07T18:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundle does not create new job if I change configuration of existing Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89075#M37681</link>
      <description>&lt;P&gt;My issue is when I update a job with a different name, it's only overriding the existing job instead of creating a new one using asset bundles.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;Step 1:&lt;/H3&gt;&lt;P&gt;This is my YAML file, and when I deploy it using asset bundles, it creates a job:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bundle:
  name: test-bundle

artifacts:
  default:
    type: whl
    build: poetry build
    path: .

resources:
  jobs:
    wheel-job:
      job_clusters:
        - job_cluster_key: sample-cluster
          new_cluster:
            spark_version: 14.3.x-scala2.12
            node_type_id: Standard_DS4_v2
            driver_node_type_id: Standard_DS4_v2&lt;/LI-CODE&gt;&lt;H3&gt;Step 2:&lt;/H3&gt;&lt;P&gt;When I update the job name or bundle name, it still updates the same job by changing its name. However, what I want is to create a &lt;STRONG&gt;new job&lt;/STRONG&gt; if a new job or bundle name is provided, instead of overriding the existing one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 15:05:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89075#M37681</guid>
      <dc:creator>sandy311</dc:creator>
      <dc:date>2024-09-08T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundle does not create new job if I change configuration of existing Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89083#M37685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119632"&gt;@sandy311&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behavior yo're observing with Databricks asset bundles is expected because asset bundles are designed to update existing jobs when the configuration or content changes. When you use a job like wheel-job, the asset bundle identifies it as the same job and will updateit.&lt;/P&gt;&lt;H3&gt;Key Points:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Asset Bundle Purpose&lt;/STRONG&gt;: The primary function of Databricks asset bundles is to manage job configurations consistently. When a job with the same id already exists, the asset bundle will update that job rather than creating a new one.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Job Identification&lt;/STRONG&gt;: Jobs are identified by their ids. If you use the same job id&amp;nbsp; (wheel-job), the asset bundle treats it as the same job and will overwrite it.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Solution:&lt;/H3&gt;&lt;P&gt;If you want to create a new job without overwriting the existing one, you should define distinct job names in your databricks.yml&amp;nbsp;file. For example, if you wish to retain the old job while creating a new one, you could name the jobs differently, like wheel-job&amp;nbsp; and wheel-job-v2 (or better a meaningful name).&lt;/P&gt;&lt;P&gt;Here's an updated example of how you can define multiple jobs in your databricks.yml&amp;nbsp;file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;bundle:
  name: test-bundle

artifacts:
  default:
    type: whl
    build: poetry build
    path: .

resources:
  jobs:
    # Define the original job
    wheel-job:
      job_clusters:
        - job_cluster_key: sample-cluster
          new_cluster:
            spark_version: 14.3.x-scala2.12
            node_type_id: Standard_DS4_v2
            driver_node_type_id: Standard_DS4_v2

    # Define a new job with a different name to avoid overwriting
    wheel-job-v2:
      job_clusters:
        - job_cluster_key: sample-cluster
          new_cluster:
            spark_version: 14.3.x-scala2.12
            node_type_id: Standard_DS4_v2
            driver_node_type_id: Standard_DS4_v2&lt;/LI-CODE&gt;&lt;H3&gt;Explanation:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;By defining wheel-job and wheel-job-v2&amp;nbsp;as separate jobs, the asset bundle will create both jobs independently without one overwriting the other.&lt;/LI&gt;&lt;LI&gt;If you need to update an existing job, keep the id consistent; if you need a new job, define a new unique id for it.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This approach will allow you to keep your old jobs while also creating new ones as required, using the asset bundles efficiently without conflicts.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 16:31:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89083#M37685</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-08T16:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundle does not create new job if I change configuration of existing Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89097#M37687</link>
      <description>&lt;P&gt;I was expecting the same behavior, and I have already tried the scenario you mentioned. I believe it's due to the asset bundle, and that's acceptable.&lt;/P&gt;&lt;P&gt;I'm trying to run integration tests when a pull request is created. The goal is to run the entire job before merging and deployment to ensure the job works correctly with the new code. I was also attempting to parameterize this process by passing variables when generating the PR so the integration job would run. After the merge, the new code would execute. However, I think we cannot parameterize the databricks.yaml file, and this presents a challenge.&lt;/P&gt;&lt;P&gt;any suggestions from your side? or best practices?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 18:25:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89097#M37687</guid>
      <dc:creator>sandy311</dc:creator>
      <dc:date>2024-09-08T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundle does not create new job if I change configuration of existing Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89098#M37688</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119632"&gt;@sandy311&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Testing on production is generally not recommended. The ideal approach is to have separate environments, such as Dev, PreProd, and Prod, which allow for thorough testing before any changes are deployed to production.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Assuming you are deploying your pull request to a "target" environment (which could be production or another environment), here are two strategies you can use:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Strategy 1: Use a "Pre-Target" Environment for Testing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;STRONG&gt;Create a Pre-Target Environment&lt;/STRONG&gt;: Set up a testing environment (PreProd) that closely mirrors your target environment (Prod or another critical environment).&lt;BR /&gt;2. &lt;STRONG&gt;Deploy the Pull Request to Pre-Target&lt;/STRONG&gt;: Deploy changes from the pull request to the Pre-Target environment.&lt;BR /&gt;3. &lt;STRONG&gt;Run Tests&lt;/STRONG&gt;: Execute your job tests in the Pre-Target environment to ensure that the changes work as expected.&lt;BR /&gt;4. &lt;STRONG&gt;Deploy to Target if Tests Pass&lt;/STRONG&gt;: If the tests are successful, proceed to deploy the changes to the target environment.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Strategy 2: Use a Rollback Mechanism in the Target Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Deploy to Target:&lt;/STRONG&gt; Deploy the changes directly to the target environment.&lt;BR /&gt;2.&lt;STRONG&gt; Run Tests on Target&lt;/STRONG&gt;: Execute job tests in the target environment.&lt;BR /&gt;3. &lt;STRONG&gt;Handle Results&lt;/STRONG&gt;:&lt;BR /&gt;- &lt;STRONG&gt;If Tests Pass&lt;/STRONG&gt;: Keep the deployed changes.&lt;BR /&gt;- &lt;STRONG&gt;If Tests Fail&lt;/STRONG&gt;: Roll back to the last known good configuration (e.g., main branch, previous release).&lt;/P&gt;&lt;P&gt;These strategies help maintain stability in your production-like environment while ensuring your new code is tested thoroughly before any critical deployment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In summary&amp;nbsp;you do not want to keep multiple versions of the same job (stable-old and untested-new) on the same environment. The best practice here is to have a separate environment to test your pull request.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 19:04:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89098#M37688</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-08T19:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundle does not create new job if I change configuration of existing Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89099#M37689</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117376"&gt;@filipniziol&lt;/a&gt;&lt;SPAN&gt;Thank you for your valuable feedback. I believe the second approach aligns well with my requirements. I will implement a rollback mechanism in the target environment. Currently, I am performing all these tasks in the development environment.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 19:36:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/89099#M37689</guid>
      <dc:creator>sandy311</dc:creator>
      <dc:date>2024-09-08T19:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks asset bundle does not create new job if I change configuration of existing Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/95812#M39179</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117376"&gt;@filipniziol&lt;/a&gt;&amp;nbsp;my requirements is to just deploy &amp;nbsp;notebooks in databricks workspace. I don’t not wana create any job. Can I still uses databricks asset bundle&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 06:27:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-does-not-create-new-job-if-i-change/m-p/95812#M39179</guid>
      <dc:creator>Ncolin1999</dc:creator>
      <dc:date>2024-10-24T06:27:40Z</dc:date>
    </item>
  </channel>
</rss>

