abhijeets25012-tech commented on code in PR #61642:
URL: https://github.com/apache/airflow/pull/61642#discussion_r2782973515


##########
task-sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -2080,17 +2080,26 @@ def supervise(
 
         exit_code = process.wait()
         end = time.monotonic()
-        log.info(
-            "Task finished",
-            task_instance_id=str(ti.id),
-            exit_code=exit_code,
-            duration=end - start,
-            final_state=process.final_state,
-        )
+
+        if exit_code == -9:
+            log.critical(
+                "Task killed by OOM (exit_code=-9)!",

Review Comment:
   Thanks for pointing that out — that makes sense. 👍
   You're right that exit_code == -9 only indicates a SIGKILL, and OOM is just 
one possible reason. I've updated the log message to:
   
   "Task killed after receiving SIGKILL (exit_code=-9). OOM is a likely cause."
   
   Let me know if you'd prefer different wording.
   



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