Repository navigation
[3.0] Turn off serverless auto-optimization retries for Run File as Workflow - #2358
Merged
Merged
Conversation
…orkflow A failed serverless run was retried by auto-optimization before the extension showed the failure. Both serverless one-time runs, notebook and Python file, now set disable_auto_optimization on their task. Co-authored-by: Isaac <no-reply@databricks.com>
rugpanov
approved these changes
Nov 27, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Fixes #2357 for 3.x. 2.x (
main) is unchanged.When a "Run File as Workflow" run on serverless compute failed, Databricks retried it, possibly more than once, before the extension showed the failure. Ordinary task retries are already off (
max_retriesdefaults to 0), but serverless auto-optimization is on by default on serverless, one-time runs included, and it retries failed tasks. The extension waits for the whole run to end, so the user saw no failure until every attempt had ended. The retries also cost compute, and a script that isn't safe to repeat ran more than once.Now both one-time runs on serverless, a notebook's and a Python file's, set
disable_auto_optimization: trueon their task. Runs on a cluster are unchanged: auto-optimization is a serverless feature.The trade-off: auto-optimization also retries failures that come from the compute rather than the script. Those now end the run at once too, as they do on a cluster, and the user runs it again.
There's no setting to turn the retries back on: a run from the editor is a development run, and the user can run it again.
Tests
WorkflowRunner.test.ts: the serverless Python file's payload and the serverless notebook's task carrydisable_auto_optimization: true; the cluster payloads stay exactly as before.yarn checkandyarn testpass.This pull request and its description were written by Isaac.