-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
execution date is missing from Task Instance tooltip #32503
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
@renzepost You can refer to |
Based on the Slack thread - https://apache-airflow.slack.com/archives/CCWHRNBK7/p1689064000858439 Summary on the thread - Since a user can override the run_id it is not reliable to lean on run_id always, for the same reason we can introduce another field in taskinstance PR to override |
The task instance is converted to dict using alchemy_to_dict but execution_date is not a column and a proxy to task_instance. So after forming the dict execution_date attribute value can be updated in the dict. I can raise a PR for this. Line 84 in 12d62e6
|
@tirkarthi Sure assigned it to you. |
Apache Airflow version
main (development)
What happened
It seems this commit has made the task instance execution date disappear from the task instance tooltip completely:
Note the missing
Run: <execution date>
between Task_id and Run_id.I think there's a problem with the task instance execution date, because it's always
undefined
. In an older version of Airflow (2.4.3), I can see that the tooltip always shows the current datetime instead of the actual execution date, which is what the author of the commit identified in the first place I think.What you think should happen instead
The tooltip should properly show the task instance's execution date, not the current datetime (or nothing). There's a deeper problem here that causes
ti.execution_date
to beundefined
.How to reproduce
Run the main branch of Airflow, with a simple DAG that finishes a run successfully. Go to the Graph view of a DAG and hover over any completed task with the mouse.
Operating System
Ubuntu 22.04
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: