You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "rawwar (via GitHub)" <gi...@apache.org> on 2025/11/21 15:16:54 UTC

[PR] log exit code and sockets being cleaned up [airflow]

rawwar opened a new pull request, #58565:
URL: https://github.com/apache/airflow/pull/58565

   improving logs to give more information when a process is killed.


-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add some logs for exit code and sockets being cleaned up [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr merged PR #58565:
URL: https://github.com/apache/airflow/pull/58565


-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] log exit code and sockets being cleaned up [airflow]

Posted by "rawwar (via GitHub)" <gi...@apache.org>.
rawwar commented on code in PR #58565:
URL: https://github.com/apache/airflow/pull/58565#discussion_r2550130458


##########
task-sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -1075,6 +1075,13 @@ def _monitor_subprocess(self):
                     self._process_exit_monotonic
                     and time.monotonic() - self._process_exit_monotonic > SOCKET_CLEANUP_TIMEOUT
                 ):
+                    log.warning(
+                        "Process exited with open sockets; cleaning up after timeout",
+                        pid=self.pid,
+                        exit_code=self._exit_code,
+                        socket_types=[socket_type for socket_type in self._open_sockets.values()],

Review Comment:
   ```suggestion
                           socket_types=list(self._open_sockets.values()),
   ```



-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org