huozhanfeng commented on a change in pull request #16768:
URL: https://github.com/apache/airflow/pull/16768#discussion_r664620009
##########
File path: airflow/dag_processing/processor.py
##########
@@ -573,6 +573,7 @@ def _execute_task_callbacks(self, dagbag: DagBag, request:
TaskCallbackRequest):
ti.start_date = simple_ti.start_date
ti.end_date = simple_ti.end_date
ti.try_number = simple_ti.try_number
+ ti.hostname = simple_ti.hostname
Review comment:
Resolved it and let the `ti.refresh_from_db()` action only runs in the
failure_callback block due to performance concern.
--
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]