<?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 multi-task jobs: a later task that reuses an environment_key restores a cached env wi in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177432#M57294</link>
    <description>&lt;P&gt;Hi Saurabh,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick reply, and for confirming that sharing an environment_key is a valid setup.&lt;/P&gt;&lt;P&gt;I will test your suggestion on one job. I will pin dbt-databricks==1.13.1 and move the test task back to the shared dbt-default key. I will post the result here after about a day of hourly runs.&lt;/P&gt;&lt;P&gt;One data point that may help: I already changed the env spec once during the incident. I moved dbt-default from env version 2 to 4. This gave a new spec, so the env did not come from the old cache entry. The next run still failed in the later task, with dbt_extractor.abi3.so: cannot open shared object file in place of rpds.rpds. Also, my working workaround (dbt-test) still uses a range (&amp;gt;=1.13,&amp;lt;1.14) and has passed every run since. So the failure seems to follow the shared key on a reused driver, not the version range.&lt;/P&gt;&lt;P&gt;Do you, or anyone here, know of a way to force a clean environment install for a task without changing the spec? An example would be a flag or setting that turns off the environment cache restore. That would let me keep one shared key while this is open.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2026 12:13:04 GMT</pubDate>
    <dc:creator>zeel08</dc:creator>
    <dc:date>2026-11-24T12:13:04Z</dc:date>
    <item>
      <title>Serverless multi-task jobs: a later task that reuses an environment_key restores a cached env with m</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177408#M57288</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Since 19 Nov 2026 (about 5:13 PM GMT+5:30), some of our serverless jobs fail in a way we cannot explain. Our code and job config did not change. We would like to know if others see the same issue, or if someone knows the cause.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Setup&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Databricks on AWS, serverless jobs compute.&lt;/LI&gt;&lt;LI&gt;Multi-task jobs. Each job has 3–4 tasks in sequence, for example: Python load task → dbt snapshot → dbt run → dbt test.&lt;/LI&gt;&lt;LI&gt;The dbt tasks use dbt_task on a SQL warehouse.&lt;/LI&gt;&lt;LI&gt;Several tasks share one entry in environments[]:&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;"environments": [{
  "environment_key": "dbt-default",
  "spec": {
    "environment_version": "2",
    "dependencies": ["dbt-databricks&amp;gt;=1.0.0,&amp;lt;2.0.0"]
  }
}]&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;BR /&gt;The first tasks on the environment_key pass. A later task on the same key fails at start-up, before any dbt command runs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Env version 2 (Python 3.11): ModuleNotFoundError: No module named 'rpds.rpds'. Import chain: dbt → dbt_common → jsonschema → referencing → rpds.&lt;/LI&gt;&lt;LI&gt;Env version 4 (Python 3.12): ImportError: dbt_extractor.abi3.so: cannot open shared object file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;What we observed&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The driver log of the failed task shows Environment restored from cache and No wheel package changes detected. The task does not install packages, and native .so files are missing from the restored env.&lt;/LI&gt;&lt;LI&gt;Only a task that reuses an environment_key after earlier tasks in the same run fails. Jobs where each env key runs only one task do not fail.&lt;/LI&gt;&lt;LI&gt;The driver log shows Spark heartbeat errors (RpcEndpointNotFoundException) for about 10 minutes. This suggests a reused driver.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Repair run&lt;/STRONG&gt; of the failed task always fails again with the same error.&lt;/LI&gt;&lt;LI&gt;A &lt;STRONG&gt;new one-time run&lt;/STRONG&gt; of only the failing task passes.&lt;/LI&gt;&lt;LI&gt;A move from env version 2 to 4 does not fix it. Only the missing file changes (rpds → dbt_extractor).&lt;/LI&gt;&lt;LI&gt;We found no new release of rpds-py or jsonschema near the onset.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Workaround that works&lt;/STRONG&gt;&lt;BR /&gt;We gave the dbt test task its own environment key, which no other task uses. Since this change, all runs pass :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
  "environment_key": "dbt-test",
  "spec": {
    "environment_version": "4",
    "dependencies": ["dbt-databricks&amp;gt;=1.13,&amp;lt;1.14"]
  }
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Did a change to the serverless environment cache, or to driver reuse between tasks, roll out on or around 19 Nov 2026?&lt;/LI&gt;&lt;LI&gt;Is it supported to share one environment_key across several tasks in a serverless job? Is there a known issue with this?&lt;/LI&gt;&lt;LI&gt;Can we clear or reset the cached environment for an env spec, without a change to the spec?&lt;/LI&gt;&lt;LI&gt;Is there a recommended configuration so that the tasks can share one environment key again?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 24 Nov 2026 07:44:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177408#M57288</guid>
      <dc:creator>zeel08</dc:creator>
      <dc:date>2026-11-24T07:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless multi-task jobs: a later task that reuses an environment_key restores a cached env wi</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177431#M57293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/274177"&gt;@zeel08&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Sharing an environment_key across tasks that require the same serverless environment is a reasonable configuration, so I wouldn't consider your Asset Bundle setup incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you once try with following (just use one and do not add range , this might solve serverless cache problem with every environment spin up):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"environments": [{
  "environment_key": "dbt-default",
  "spec": {
    "environment_version": "2",
    "dependencies": ["dbt-databricks==1.13.1"]
  }
}]&lt;/PRE&gt;&lt;P&gt;amd them following&lt;/P&gt;&lt;P&gt;Creating a separate environment key per task is a valid workaround, but ideally shouldn't be required simply to avoid a corrupted/incomplete cached environment. Given the missing native .so files only after Environment restored from cache, I would raise this with Databricks Support as a serverless environment restoration/reuse issue.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Nov 2026 11:55:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177431#M57293</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2026-11-24T11:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless multi-task jobs: a later task that reuses an environment_key restores a cached env wi</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177432#M57294</link>
      <description>&lt;P&gt;Hi Saurabh,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick reply, and for confirming that sharing an environment_key is a valid setup.&lt;/P&gt;&lt;P&gt;I will test your suggestion on one job. I will pin dbt-databricks==1.13.1 and move the test task back to the shared dbt-default key. I will post the result here after about a day of hourly runs.&lt;/P&gt;&lt;P&gt;One data point that may help: I already changed the env spec once during the incident. I moved dbt-default from env version 2 to 4. This gave a new spec, so the env did not come from the old cache entry. The next run still failed in the later task, with dbt_extractor.abi3.so: cannot open shared object file in place of rpds.rpds. Also, my working workaround (dbt-test) still uses a range (&amp;gt;=1.13,&amp;lt;1.14) and has passed every run since. So the failure seems to follow the shared key on a reused driver, not the version range.&lt;/P&gt;&lt;P&gt;Do you, or anyone here, know of a way to force a clean environment install for a task without changing the spec? An example would be a flag or setting that turns off the environment cache restore. That would let me keep one shared key while this is open.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2026 12:13:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177432#M57294</guid>
      <dc:creator>zeel08</dc:creator>
      <dc:date>2026-11-24T12:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless multi-task jobs: a later task that reuses an environment_key restores a cached env wi</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177435#M57296</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/274177"&gt;@zeel08&lt;/a&gt;, I took a look at both internal and external documentation and here is what I found.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/22314"&gt;@saurabh18cs&lt;/a&gt; is right on both counts: sharing one &lt;CODE&gt;environment_key&lt;/CODE&gt; across tasks is supported, and this belongs with Databricks Support. The restore is by design. Within a run, a task with the same dependency set as a completed task reuses the cached virtual environment, and the cache follows the dependency spec, not the key name.&lt;/P&gt;
&lt;P&gt;One thing to rule out first. The cache problem the docs warn about is stale code from a custom wheel rebuilt without a version bump. That isn't your case: &lt;CODE&gt;dbt-databricks&lt;/CODE&gt; comes from PyPI, and your symptom is binaries that won't load.&lt;/P&gt;
&lt;P&gt;Here's a theory to test, and it's only a theory. Both failures are compiled extensions, and the second error is the tell. If &lt;CODE&gt;dbt_extractor.abi3.so&lt;/CODE&gt; were missing, Python would raise &lt;CODE&gt;ModuleNotFoundError&lt;/CODE&gt;, as it did for &lt;CODE&gt;rpds.rpds&lt;/CODE&gt;. It found the file and the loader refused it, which is what a binary built for a different CPU produces. The docs say serverless can run on &lt;CODE&gt;aarch64&lt;/CODE&gt; or &lt;CODE&gt;x86_64&lt;/CODE&gt; with no guarantee which. An environment built on one and restored on the other would behave the way yours does. I can't explain why repairs always fail, or why it began on 19 Nov.&lt;/P&gt;
&lt;P&gt;To check, add a small Python script task on the shared key, first and last in the chain:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-python"&gt;import glob, platform
from importlib.util import find_spec

print(platform.machine())
for pkg in ("rpds", "dbt_extractor"):
    for d in find_spec(pkg).submodule_search_locations:
        print(glob.glob(f"{d}/*.so"))
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Attach the output to your ticket with the run IDs and driver logs. A changed architecture, a wrong tag on the &lt;CODE&gt;.so&lt;/CODE&gt; names, or missing files are all useful to Support.&lt;/P&gt;
&lt;P&gt;On your four questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Change on 19 Nov: I don't know. I found nothing in the November platform release notes. Check the status page for that date, and ask Support what rolled out to your workspace.&lt;/LI&gt;
&lt;LI&gt;Sharing a key: supported and documented. I found no public known issue.&lt;/LI&gt;
&lt;LI&gt;Clearing the cache: the only documented reset is in the notebook Environment side pane. I found nothing equivalent for jobs.&lt;/LI&gt;
&lt;LI&gt;Sharing one key again: I don't know of a setting that turns off the restore. Keep the dedicated key, and keep its spec different from &lt;CODE&gt;dbt-default&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Pinning &lt;CODE&gt;dbt-databricks==1.13.1&lt;/CODE&gt;, as &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/22314"&gt;@saurabh18cs&lt;/a&gt; suggested, is good practice either way. Your own results say the range isn't the trigger, though.&lt;/P&gt;
&lt;P&gt;At the end of the day, your config is fine and your workaround is the right one until Support confirms the cause.&lt;/P&gt;
&lt;P&gt;References:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Configure the serverless environment: &lt;A href="https://docs.databricks.com/aws/en/compute/serverless/dependencies" target="_blank"&gt;https://docs.databricks.com/aws/en/compute/serverless/dependencies&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Platform release notes, November 2026: &lt;A href="https://docs.databricks.com/aws/en/release-notes/product/2026/november" target="_blank"&gt;https://docs.databricks.com/aws/en/release-notes/product/2026/november&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Databricks status page: &lt;A href="https://status.databricks.com/" target="_blank"&gt;https://status.databricks.com/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Databricks Support: &lt;A href="https://help.databricks.com" target="_blank"&gt;https://help.databricks.com&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you found this answer helpful please check off "Accept as Solutions" so that others can have confidence in the answer.&lt;/P&gt;
&lt;P&gt;Regards, Louis.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2026 12:42:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177435#M57296</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2026-11-24T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless multi-task jobs: a later task that reuses an environment_key restores a cached env wi</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177470#M57303</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/22314" target="_blank" rel="noopener noreferrer"&gt;@saurabh18cs&lt;/A&gt; and &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/34815"&gt;@Louis_Frolio&lt;/a&gt;&amp;nbsp;, this was very helpful.&lt;/P&gt;&lt;P&gt;The architecture theory fits. The full v4 error was dbt_extractor.abi3.so: cannot open shared object file: No such file or directory. As far as I know, glibc gives this error for a .so built for a different CPU. rpds uses a CPU-specific file name, so on the other CPU Python skips it, which explains the ModuleNotFoundError on v2.&lt;/P&gt;&lt;P&gt;I added your check to two jobs. All checks so far show aarch64 machines and aarch64 binaries, and there have been no failures since 19 Nov. The shared key with dbt-databricks==1.13.1 pinned also passes every run. My guess is that the pool briefly mixed x86_64 and aarch64 machines on 19 Nov.&lt;/P&gt;&lt;P&gt;I’ll keep the checks running for a few days and post here if x86_64 appears. One question: can a serverless job pin its CPU architecture, or should the environment cache key include it?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2026 18:23:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177470#M57303</guid>
      <dc:creator>zeel08</dc:creator>
      <dc:date>2026-11-24T18:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless multi-task jobs: a later task that reuses an environment_key restores a cached env wi</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177476#M57304</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/274177"&gt;@zeel08&lt;/a&gt;, I dug in and want to share my findings.&lt;/P&gt;
&lt;P&gt;Your guess of both errors is correct. glibc's loader skips a binary built for another machine and reports "No such file or directory", even though the file is sitting right there (see the glibc thread below). Python only considers extension files tagged for the host, so the &lt;CODE&gt;x86_64&lt;/CODE&gt;-tagged &lt;CODE&gt;rpds&lt;/CODE&gt; file never gets a look on &lt;CODE&gt;aarch64&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;One caution before we call it solved. The theory fits, but nobody has caught an &lt;CODE&gt;x86_64&lt;/CODE&gt; machine in the act yet. Since nothing has failed since the 19th, the shared key passing with the pin doesn't prove much either way. Pinning, as &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/22314"&gt;@saurabh18cs&lt;/a&gt; suggested, is still good practice.&lt;/P&gt;
&lt;P&gt;Can a serverless job pin its CPU architecture? No. The docs are explicit: serverless doesn't guarantee an architecture, a job can run on &lt;CODE&gt;aarch64&lt;/CODE&gt; or &lt;CODE&gt;x86_64&lt;/CODE&gt;, and your dependencies have to support both. I found no job setting or environment spec field that pins it. If you truly need a fixed architecture, classic jobs compute is the route, since you pick the instance type there.&lt;/P&gt;
&lt;P&gt;Should the cache key include the architecture? I don't know how the cache is keyed. The public docs only say that tasks sharing a dependency set within a run reuse the cached environment. Your logic holds up, though. You install by name from PyPI, so a fresh install picks the right binaries for whatever machine it's on, and your check confirms that. What would break is restoring an environment built on the other architecture, and you can't control that from a job config. The docs also describe the architecture changing between runs, and your failure was between tasks inside one run.&lt;/P&gt;
&lt;P&gt;Both points belong with Support. Keep the check task first and last in the chain, and if a failure recurs, send them:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Run IDs for a passing and a failing task&lt;/LI&gt;
&lt;LI&gt;The &lt;CODE&gt;platform.machine()&lt;/CODE&gt; output from both ends of the chain&lt;/LI&gt;
&lt;LI&gt;Driver logs showing the import error and the "Environment restored from cache" line&lt;/LI&gt;
&lt;LI&gt;The exact environment spec from your job config&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Short version: you can't pin the architecture, and if the theory holds, the fix belongs on the platform side, not in your config.&lt;/P&gt;
&lt;P&gt;References:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Configure the serverless environment: &lt;A href="https://docs.databricks.com/aws/en/compute/serverless/dependencies" target="_blank"&gt;https://docs.databricks.com/aws/en/compute/serverless/dependencies&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;glibc patch thread on the misleading loader error: &lt;A href="https://inbox.sourceware.org/libc-alpha/20220115052237.50170-1-r.xu.1@research.gla.ac.uk/" target="_blank"&gt;https://inbox.sourceware.org/libc-alpha/20220115052237.50170-1-r.xu.1@research.gla.ac.uk/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Databricks Support: &lt;A href="https://help.databricks.com" target="_blank"&gt;https://help.databricks.com&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you found this answer helpful please check off "Accept as Solutions" so that others can have confidence in the answer.&lt;/P&gt;
&lt;P&gt;Regards, Louis&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2026 19:45:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177476#M57304</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2026-11-24T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless multi-task jobs: a later task that reuses an environment_key restores a cached env wi</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177504#M57307</link>
      <description>&lt;P&gt;Thanks Louis, this is very helpful. It confirms the mechanism and that the fix sits on the platform side. I’ll keep the pin and the arch check in place, and I’ll go to Support with those details if it happens again. Marking this as the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2026 05:28:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-multi-task-jobs-a-later-task-that-reuses-an/m-p/177504#M57307</guid>
      <dc:creator>zeel08</dc:creator>
      <dc:date>2026-11-25T05:28:05Z</dc:date>
    </item>
  </channel>
</rss>

