<?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: Serverless environment not respecting environment spec on run_job_task in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135090#M50271</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/192094"&gt;@elliottatreef&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you try to set the Environment version on the source notebook and then trigger the job?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On notebook -&amp;gt;&amp;nbsp;Serverless -&amp;gt; configuration -&amp;gt; Environment version drop down.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in your job, making sure it’s assigning to the Serverless compute that you configured. I checked with a simple repro in my local and once we set the Environment version in Notebook it picks the same in Job.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Oct 2025 07:59:00 GMT</pubDate>
    <dc:creator>MuthuLakshmi</dc:creator>
    <dc:date>2025-10-16T07:59:00Z</dc:date>
    <item>
      <title>Serverless environment not respecting environment spec on run_job_task</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135049#M50264</link>
      <description>&lt;P&gt;When running a job via a `run_job_task`, the job triggered is not using the specified serverless environment. I've configured my job to use serverless `environment_version` "3" with a dependency built into my workspace, but whenever I run the job, it uses env version "2".&lt;/P&gt;&lt;P&gt;In addition, I've tried configuring the default environment for serverless in my workspace to use the same setting as my job's configured runtime and that doesn't work either.&lt;/P&gt;&lt;P&gt;Here, you can see that the job is using version "2".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-15 at 11.40.45 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20758i8DCE74C282C482C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-10-15 at 11.40.45 AM.png" alt="Screenshot 2025-10-15 at 11.40.45 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even though it is configured with version "3".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-15 at 11.43.39 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20757iD80D7BC20F680115/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-10-15 at 11.43.39 AM.png" alt="Screenshot 2025-10-15 at 11.43.39 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 18:53:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135049#M50264</guid>
      <dc:creator>elliottatreef</dc:creator>
      <dc:date>2025-10-15T18:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless environment not respecting environment spec on run_job_task</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135090#M50271</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/192094"&gt;@elliottatreef&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you try to set the Environment version on the source notebook and then trigger the job?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On notebook -&amp;gt;&amp;nbsp;Serverless -&amp;gt; configuration -&amp;gt; Environment version drop down.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in your job, making sure it’s assigning to the Serverless compute that you configured. I checked with a simple repro in my local and once we set the Environment version in Notebook it picks the same in Job.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 07:59:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135090#M50271</guid>
      <dc:creator>MuthuLakshmi</dc:creator>
      <dc:date>2025-10-16T07:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless environment not respecting environment spec on run_job_task</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135092#M50273</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/192094"&gt;@elliottatreef&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its a known limitation.&amp;nbsp;serverless environments, including the environment_version specification, cannot be applied programmatically via Databricks Asset Bundles (DAB) YAML to notebook_task types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UI Configuration for Environment Version (Quick but Manual):&lt;/P&gt;&lt;P&gt;Open your notebook in the Databricks workspace. In the top-right compute selector, choose Serverless and set Environment version: 3. Save the notebook.&lt;/P&gt;&lt;P&gt;Job runs (including those triggered via run_job_task) will now use version 3.&lt;/P&gt;&lt;P&gt;For your wheel dependency, add %pip install /Workspace/AssetBundles/data-eng-data-ops/files/dist/data_eng_data_ops-0.1.0-py3-none-any.whl at the top of the notebook.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drawback&lt;/STRONG&gt;: Not automated for CI/CD; requires UI intervention post-DAB deployment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 08:06:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135092#M50273</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-10-16T08:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless environment not respecting environment spec on run_job_task</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135165#M50289</link>
      <description>&lt;P&gt;Thanks for the tip! Funny enough, the pip install is a thing I was already doing, but was trying to clean those up because it looks ugly and isn't something I want at the top of all of my jobs. Does this basically mean that setting an `environment` on a job that is only a notebook task does nothing and I shouldn't even set it?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 18:36:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-environment-not-respecting-environment-spec-on-run/m-p/135165#M50289</guid>
      <dc:creator>elliottatreef</dc:creator>
      <dc:date>2025-10-16T18:36:38Z</dc:date>
    </item>
  </channel>
</rss>

