<?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: Programatic selection of serverless compute for notebooks environment version in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110766#M9095</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149255"&gt;@tts&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for following up.. I noticed that serverless version 2 is now default version, are you still hitting the failure?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 15:55:24 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2025-02-20T15:55:24Z</dc:date>
    <item>
      <title>Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110225#M9091</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a case where I am executing notebooks from an external system using databricks api&amp;nbsp;&lt;SPAN&gt;/api/2.2/jobs/runs/submit. This has always been non problematic with the job compute, but due to the quite recent serverless for notebooks support being introduced, it was decided to switch to that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The issue I have is the limitations within serverless environment version 1, as it does not support schema evolution in merge operations, last week serverless environment version 2 was introduced which supports the withSchemaEvolution method of the DeltaMergeBuilder class so it solves the issue i was facing initially, but it introduces a new one as the only way I am able to change the version is through the UI on a notebook level, however once databricks content gets freshly deployed to the workspace, the value is again set to 1, so I don't want to go and everytime after deployment change the value from 1 to 2.&lt;/P&gt;&lt;P&gt;I tried in the api call defining the environment as per documentation and setting the client value to "2":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tts_1-1739539955132.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14879iF84E980DCAA7030A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tts_1-1739539955132.png" alt="tts_1-1739539955132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also tried to then reference the environment_key defined in environments in the task section, but that returns an error that environments can't be passed to notebook tasks.&lt;/P&gt;&lt;P&gt;My question is if there is any way to programatically specify in the api call that I want to use serverless environment version 2 or somehow else make the version 2 default on workspace level for all notebooks?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 13:35:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110225#M9091</guid>
      <dc:creator>tts</dc:creator>
      <dc:date>2025-02-14T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110317#M9092</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149255"&gt;@tts&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;there is no way to programmatically specify the version of the serverless environment for notebook tasks in the Databricks API call &lt;CODE&gt;/api/2.2/jobs/runs/submit&lt;/CODE&gt;. Currently, serverless environment versions must be set at the notebook level through the UI, and this setting gets reset to version 1 every time Databricks content is deployed to the workspace. I will check internally if there is a workaround for now.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 00:40:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110317#M9092</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-16T00:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110361#M9093</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the response. Let me know if you find any way to handle this or if this is atleast something that will be available in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 06:25:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110361#M9093</guid>
      <dc:creator>tts</dc:creator>
      <dc:date>2025-02-17T06:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110765#M9094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Has there been any updates regarding this internally?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 15:44:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110765#M9094</guid>
      <dc:creator>tts</dc:creator>
      <dc:date>2025-02-20T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110766#M9095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149255"&gt;@tts&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for following up.. I noticed that serverless version 2 is now default version, are you still hitting the failure?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 15:55:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110766#M9095</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-20T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110768#M9096</link>
      <description>&lt;P&gt;Did not notice that, but you are right, thanks for the follow and for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 15:59:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110768#M9096</guid>
      <dc:creator>tts</dc:creator>
      <dc:date>2025-02-20T15:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110884#M9097</link>
      <description>&lt;P&gt;As an alternative environment for Serverless could be set in asset bundle job configuration.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/jobs-tutorial#configure-a-job-that-uses-serverless-compute" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/jobs-tutorial#configure-a-job-that-uses-serverless-compute&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:46:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/110884#M9097</guid>
      <dc:creator>JakubSkibicki</dc:creator>
      <dc:date>2025-02-21T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/111444#M9098</link>
      <description>&lt;P&gt;This only applies to&amp;nbsp;&lt;SPAN&gt;Python scripts, Python wheesl and dbt tasks, but in my case I want to have possibility to set it for notebook tasks as well. Currently, when notebooks are deployed with asset bundles, the value still gets set to 1. If I create a new notebook in the workspace, the environment version is then 2. So what I struggle to find is how to set the value for notebook tasks or if that is even possible at the moment.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 12:02:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/111444#M9098</guid>
      <dc:creator>tts</dc:creator>
      <dc:date>2025-02-28T12:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/120484#M10117</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149255"&gt;@tts&lt;/a&gt;, did you manage to get this resolved? Battling the same issue here and cannot find a way to make it work. Even though the default API is 2 now, it still seems to randomly assign an API when deploy via DAB.&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/131295"&gt;@JakubSkibicki&lt;/a&gt;, tried this too but hitting the same issue as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149255"&gt;@tts&lt;/a&gt;., cannot be used with notebook tasks curently.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 02:35:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/120484#M10117</guid>
      <dc:creator>GerardW</dc:creator>
      <dc:date>2025-05-29T02:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Programatic selection of serverless compute for notebooks environment version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/140673#M11091</link>
      <description>&lt;P&gt;Not so sure about the general but in eu-west-3, we could specify the serverless environment version using DAB using the `environments` block and `spec` params:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;resources:
  jobs:
    pipeline:
      name: "[${bundle.target}]pipeline"
      webhook_notifications: ${var.webhook_notifications_code_block}

      health:
        rules:
          - {metric: RUN_DURATION_SECONDS, op: GREATER_THAN, value: 1200}

      timeout_seconds: 3600

      queue:
        enabled: true

      tasks:
        - task_key: task-key
          notebook_task:
            notebook_path: "${var.notebook_path}"
          environment_key: default
          disable_auto_optimization: true
          max_retries: 0
      environments:
        - environment_key: default
          spec:
            client: "4"

      parameters:
        - name: env_file_path
          default: "${var.env_file_path}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2025 23:00:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/programatic-selection-of-serverless-compute-for-notebooks/m-p/140673#M11091</guid>
      <dc:creator>toby_chu</dc:creator>
      <dc:date>2025-11-30T23:00:43Z</dc:date>
    </item>
  </channel>
</rss>

