-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Flash an error msg instead of failure in rendered-templates
when map index is not found
#32011
Conversation
Signed-off-by: Hussein Awala <[email protected]>
airflow/www/views.py
Outdated
ti.refresh_from_task(raw_task) | ||
else: | ||
# When there is no task instance with the given map_index | ||
ti = TaskInstance(raw_task, map_index=map_index) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer this to do something more explicit. It is very awkward to instantiate a fake task instance without any intention to run it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to keep the Rendered Template line in the empty tab? (That’s title
I think?) Maybe we can change it to a Markup
object that shows some details on the error.
Signed-off-by: Hussein Awala <[email protected]>
e132cd1
to
92d7b66
Compare
…p index is not found (apache#32011) --------- Signed-off-by: Hussein Awala <[email protected]>
…p index is not found (#32011) --------- Signed-off-by: Hussein Awala <[email protected]> (cherry picked from commit 62a534d)
closes: #32005
Before this PR:
After this PR:
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.