Skip to content

Comments

Retain on_failure_fail_dagrun attr when other task attrs are overriden#31678

Merged
ephraimbuddy merged 1 commit intoapache:mainfrom
astronomer:retain-on-failure-fail
Jun 2, 2023
Merged

Retain on_failure_fail_dagrun attr when other task attrs are overriden#31678
ephraimbuddy merged 1 commit intoapache:mainfrom
astronomer:retain-on-failure-fail

Conversation

@ephraimbuddy
Copy link
Contributor

When on_failure_fail_dagrun is True on a task and we override other attributes of a task using task.override, we should still retain the value of on_failure_fail_dagrun. This needs special treatment since it's not original task param.

When on_failure_fail_dagrun is True on a task and we override other
attributes of a task using task.override, we should still retain the
value of on_failure_fail_dagrun. This needs special treatment since
it's not original task param.
@ephraimbuddy ephraimbuddy merged commit cb18d92 into apache:main Jun 2, 2023
@ephraimbuddy ephraimbuddy deleted the retain-on-failure-fail branch June 2, 2023 13:52
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Jun 8, 2023
@eladkal eladkal added this to the Airflow 2.6.2 milestone Jun 8, 2023
eladkal pushed a commit that referenced this pull request Jun 8, 2023
#31678)

When on_failure_fail_dagrun is True on a task and we override other
attributes of a task using task.override, we should still retain the
value of on_failure_fail_dagrun. This needs special treatment since
it's not original task param.

(cherry picked from commit cb18d92)
@jedcunningham jedcunningham added the AIP-52 Automatic setup and teardown tasks label Jun 8, 2023
@eladkal eladkal modified the milestones: Airflow 2.6.2, Airflow 2.7.0 Jun 9, 2023
@eladkal
Copy link
Contributor

eladkal commented Jun 9, 2023

moved to 2.7.0 milestone as this PR is part of AIP-52

@jedcunningham jedcunningham added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-52 Automatic setup and teardown tasks changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) type:bug-fix Changelog: Bug Fixes

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

4 participants