Repository navigation
Make durable reach default_args and warn when set below Airflow 3.3 - #71531
Merged
amoghrajesh merged 2 commits intoAug 14, 2026
Merged
Conversation
amoghrajesh
requested review from
o-nikolas,
potiuk and
shahar1
as code owners
August 13, 2026 06:46
1 task
eladkal
approved these changes
Aug 13, 2026
18 of 91 tasks
1 task
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.
Was generative AI tooling used to co-author this PR?
durablewas left in**kwargsinstead of being a named parameter onRedshiftDataOperator,LivyOperator,DatabricksSubmitRunOperator,DatabricksRunNowOperator,BigQueryInsertJobOperator, andSnowflakeSqlApiOperator._apply_defaultsonly fills parameters that are literally named in a decorated__init__, sodefault_args={"durable": False}silently leftdurableat its mixin-owned default ofTrueon every one of these operators.Separately, none of these six operators ever read
self.durableoutside their own compat stub's__init__, so the value has always been a genuine no-op below Airflow 3.3 because there's no task state store for it to control. But the stub accepted any value silently, with no signal that it did nothing. Now it warns, below 3.3 emitsUserWarning: durable has no effect on Airflow versions below 3.3., so nobody mistakes silence for effect.None of these operators have a legacy flag to fall back on (unlike
Glue's
resume_glue_job_on_retryor KPO'sreattach_on_restart), sothere's nothing else to resolve -- the warning is the whole fix.
Before / after:
durableon Airflow below 3.3Applies identically to all six operators (
RedshiftDataOperator,LivyOperator,DatabricksSubmitRunOperator,DatabricksRunNowOperator,BigQueryInsertJobOperator,SnowflakeSqlApiOperator) — none of them have a legacy flag, and none of them ever readself.durableoutside their compat stub, so behavior never changes here. Only the warning is new.durablepassedTrueUserWarning: "durablehas no effect on Airflow versions below 3.3."FalseUserWarning: "durablehas no effect on Airflow versions below 3.3."default_argsdefault_args={"durable": False}, no explicitdurablekwargdurablestayed at the mixin's default ofTruedurableisFalse{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.