mobuchowski commented on code in PR #44547:
URL: https://github.com/apache/airflow/pull/44547#discussion_r1865642896
##########
airflow/models/taskinstance.py:
##########
@@ -1127,7 +1127,8 @@ def _handle_failure(
)
if not test_mode:
- TaskInstance.save_to_db(failure_context["ti"], session)
+ task_instance.dag_run.refresh_from_db()
Review Comment:
It is always stale if updated in the meantime by scheduler/webserver, so
when it gets manually marked as failed the database is updated with stale data.
TI is updated a bit before that, in `TaskInstance.fetch_handle_failure_context`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]