potiuk commented on code in PR #40334: URL: https://github.com/apache/airflow/pull/40334#discussion_r1647485610
########## airflow/jobs/scheduler_job_runner.py: ########## @@ -774,9 +774,11 @@ def _process_executor_events(self, session: Session) -> int: tags={"dag_id": ti.dag_id, "task_id": ti.task_id}, ) msg = ( - "Executor reports task instance %s finished (%s) although the " - "task says it's %s. (Info: %s) Was the task killed externally?" + f"The executor reported that the task instance {ti} finished with state {state}, but the task instance's state attribute is {ti.state}. " + "Learn more: https://airflow.apache.org/docs/apache-airflow/stable/troubleshooting.html#task-state-changed-externally" ) Review Comment: Yep . We only want them resolved when there is a callback or error (otherwise they will be eagerly evaluated) -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org