uranusjr commented on code in PR #40334:
URL: https://github.com/apache/airflow/pull/40334#discussion_r1650536006


##########
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}. "

Review Comment:
   Probably not particularly necessary since the state string is in a known 
pretty simple format. Up to the author I guess.



-- 
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]

Reply via email to