Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Nov 8, 2021

When task instance was missing (because old dag runs did not have
it) trying to run the missing task from the UI resulted in
stacktrace rather than nice error message.

Fixes: #19477


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

When task instance was missing (because old dag runs did not have
it) trying to run the missing task from the UI resulted in
stacktrace rather than nice error message.

Fixes: apache#19477
@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Nov 8, 2021
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Nov 8, 2021
@github-actions
Copy link

github-actions bot commented Nov 8, 2021

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@potiuk potiuk merged commit 51d61a9 into apache:main Nov 8, 2021
@potiuk potiuk deleted the fix-running-missing-instance-from-ui branch November 8, 2021 19:42
@jedcunningham jedcunningham added this to the Airflow 2.2.3 milestone Dec 7, 2021
jedcunningham pushed a commit that referenced this pull request Dec 7, 2021
When task instance was missing (because old dag runs did not have
it) trying to run the missing task from the UI resulted in
stacktrace rather than nice error message.

Fixes: #19477
(cherry picked from commit 51d61a9)
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'NoneType' object has no attribute 'refresh_from_task' Error when manually running task instance

3 participants