<?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: Error Databricks Bundle Deploy with changes in the wheel file in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/114937#M44993</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We've added a solution for&amp;nbsp;this problem&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in&amp;nbsp;&lt;/SPAN&gt;&lt;A class="c-link" href="https://github.com/databricks/cli/releases/tag/v0.245.0" target="_blank" rel="noopener noreferrer" data-stringify-link="https://github.com/databricks/cli/releases/tag/v0.245.0" data-sk="tooltip_parent"&gt;v0.245.0&lt;/A&gt;&lt;SPAN&gt;. There is opt-in "dynamic_version: true" flag on artifact to enable automated wheel patching that break the cache (&lt;/SPAN&gt;&lt;A class="c-link" href="https://github.com/databricks/cli/blob/main/acceptance/bundle/artifacts/whl_dynamic/databricks.yml#L10" target="_blank" rel="noopener noreferrer" data-stringify-link="https://github.com/databricks/cli/blob/main/acceptance/bundle/artifacts/whl_dynamic/databricks.yml#L10" data-sk="tooltip_parent"&gt;Example&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Once set, "bundle deploy" will transparently patch version suffix in the built wheel so that the new code is always deployed.&lt;BR /&gt;&lt;BR /&gt;Note, that this only works with local wheels that are uploaded as part of "bundle deploy". So you need to download this wheel into your project so that it can be patched by "bundle deploy" before upload to break the cache.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;artifacts:
  mywheel:
    type: whl
    dynamic_version: true
    files:
    - source: dist/pipelines-0.0.1-py3-none-any.whl

resources:
  jobs:
    sync_tables_gold_with_pg:
      name: sync_tables_gold_with_pg

      tasks:
        - task_key: sync_tables_gl_and_pg
          job_cluster_key: job_new_cluster
          existing_cluster_id: 1224-151003-c62b2avz
          notebook_task:
            notebook_path: ../notebook/sync_gold_tables_to_postgres.ipynb
            source: WORKSPACE
            base_parameters:
              env: ${bundle.target}
          libraries:
            - whl: dist/pipelines-0.0.1-py3-none-any.whl&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 09:35:54 GMT</pubDate>
    <dc:creator>denis-dbx</dc:creator>
    <dc:date>2025-04-09T09:35:54Z</dc:date>
    <item>
      <title>Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103975#M41613</link>
      <description>&lt;P&gt;Hello Community,&lt;BR /&gt;Suddenly, I have an error, when I'm doing the deploy of the new bundle to databricks changing the python script, the cluster continue to point to an old version of the py script uploaded from databricks asset bundle, why this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 16:11:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103975#M41613</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-02T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103978#M41615</link>
      <description>&lt;P&gt;Seems that the problem is to use an existing cluster and making the deploy again and again point to a first upload of the same script.. is this a databricks bug?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 16:26:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103978#M41615</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-02T16:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103980#M41616</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133094"&gt;@jeremy98&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What is the error that you are hitting?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 16:27:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103980#M41616</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T16:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103982#M41617</link>
      <description>&lt;P&gt;Hello Alberto,&lt;/P&gt;&lt;P&gt;Yes, essentially, when I was deploying a workflow based on an existing cluster to run manually inside Databricks, I encountered an issue. While updating a Python script used by a notebook task, the script pointed to the initial version instead of the updated one, even though I redeployed the DAB.&lt;/P&gt;&lt;P&gt;Let me know if this makes things clearer.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 16:40:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103982#M41617</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-02T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103985#M41620</link>
      <description>&lt;P&gt;Thanks for the comments!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to confirm you are following this deployment logic?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;databricks bundle validate&lt;BR /&gt;databricks bundle deploy -t dev&lt;BR /&gt;databricks bundle run -t dev hello_job&lt;/P&gt;
&lt;P&gt;Also it looks like existing cluster is not picking up new version&amp;nbsp;you can either restart the cluster manually or automate the restart process as part of your deployment workflow, just to confirm.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 17:00:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/103985#M41620</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T17:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/104007#M41633</link>
      <description>&lt;P&gt;Hello Alberto,&lt;BR /&gt;Thanks for your answer, yes basically I did those steps. Sometimes I didn't do validate before deploy (putting -t stg, instead dev target) but also the last command all manually through the portal.&lt;/P&gt;&lt;P&gt;I restarted, but again after 3 deploys for example, the cluster doesn't take the correct version of the py script..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 23:12:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/104007#M41633</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-02T23:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/104070#M41655</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133094"&gt;@jeremy98&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you please send me your&amp;nbsp;databricks.yml file to review it?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 12:49:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/104070#M41655</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-03T12:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/104424#M41739</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;BR /&gt;This is the yaml file I used, but btw I think because I cannot use a cluster up and never stop, I had the problem that during every new deploy, btw the cluster retains the first deploy... seems weird.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    sync_tables_gold_with_pg:
      name: sync_tables_gold_with_pg

      tasks:
        - task_key: sync_tables_gl_and_pg
          job_cluster_key: job_new_cluster
          existing_cluster_id: 1224-151003-c62b2avz
          notebook_task:
            notebook_path: ../notebook/sync_gold_tables_to_postgres.ipynb
            source: WORKSPACE
            base_parameters:
              env: ${bundle.target}
          libraries:
            - whl: ${workspace.root_path}/files/dist/pipelines-0.0.1-py3-none-any.whl&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 19:04:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/104424#M41739</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-06T19:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/114937#M44993</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We've added a solution for&amp;nbsp;this problem&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in&amp;nbsp;&lt;/SPAN&gt;&lt;A class="c-link" href="https://github.com/databricks/cli/releases/tag/v0.245.0" target="_blank" rel="noopener noreferrer" data-stringify-link="https://github.com/databricks/cli/releases/tag/v0.245.0" data-sk="tooltip_parent"&gt;v0.245.0&lt;/A&gt;&lt;SPAN&gt;. There is opt-in "dynamic_version: true" flag on artifact to enable automated wheel patching that break the cache (&lt;/SPAN&gt;&lt;A class="c-link" href="https://github.com/databricks/cli/blob/main/acceptance/bundle/artifacts/whl_dynamic/databricks.yml#L10" target="_blank" rel="noopener noreferrer" data-stringify-link="https://github.com/databricks/cli/blob/main/acceptance/bundle/artifacts/whl_dynamic/databricks.yml#L10" data-sk="tooltip_parent"&gt;Example&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Once set, "bundle deploy" will transparently patch version suffix in the built wheel so that the new code is always deployed.&lt;BR /&gt;&lt;BR /&gt;Note, that this only works with local wheels that are uploaded as part of "bundle deploy". So you need to download this wheel into your project so that it can be patched by "bundle deploy" before upload to break the cache.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;artifacts:
  mywheel:
    type: whl
    dynamic_version: true
    files:
    - source: dist/pipelines-0.0.1-py3-none-any.whl

resources:
  jobs:
    sync_tables_gold_with_pg:
      name: sync_tables_gold_with_pg

      tasks:
        - task_key: sync_tables_gl_and_pg
          job_cluster_key: job_new_cluster
          existing_cluster_id: 1224-151003-c62b2avz
          notebook_task:
            notebook_path: ../notebook/sync_gold_tables_to_postgres.ipynb
            source: WORKSPACE
            base_parameters:
              env: ${bundle.target}
          libraries:
            - whl: dist/pipelines-0.0.1-py3-none-any.whl&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 09:35:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/114937#M44993</guid>
      <dc:creator>denis-dbx</dc:creator>
      <dc:date>2025-04-09T09:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error Databricks Bundle Deploy with changes in the wheel file</title>
      <link>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/115008#M45008</link>
      <description>&lt;P&gt;AMAZING :), thx denis!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 16:06:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-databricks-bundle-deploy-with-changes-in-the-wheel-file/m-p/115008#M45008</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-04-09T16:06:05Z</dc:date>
    </item>
  </channel>
</rss>

