Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix opening "Task Instance Details" page in web UI unintentionally resets TaskInstance.max_tries #21018

Merged
merged 3 commits into from Jan 26, 2022

Conversation

yuqian90
Copy link
Contributor

closes: #21017


Do not change max_tries in refresh_from_tasks(). This is to prevent the web UI from accidentally resetting the value of max_tries to the initial value and causing tasks in "reschedule" mode to raise AirflowSensorTimeout prematurely.

Note that this PR only addresses the symptom reported in #21017. A more comprehensive fix should be to stop auto-committing the session in views.py in functions that are not supposed to modify the database. That can be done separately if someone is interested.

@kaxil kaxil added this to the Airflow 2.2.4 milestone Jan 21, 2022
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Jan 22, 2022
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Jan 26, 2022
@jedcunningham jedcunningham merged commit e3832a7 into apache:main Jan 26, 2022
@yuqian90 yuqian90 deleted the max_tries branch January 27, 2022 09:26
jedcunningham pushed a commit that referenced this pull request Jan 27, 2022
jedcunningham pushed a commit that referenced this pull request Jan 28, 2022
jedcunningham pushed a commit that referenced this pull request Feb 17, 2022
jedcunningham pushed a commit to astronomer/airflow that referenced this pull request Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full tests needed We need to run full set of tests for this PR to merge type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening "Task Instance Details" page in web UI unintentionally resets TaskInstance.max_tries
4 participants