anukratb commented on code in PR #75297:
URL: https://github.com/apache/airflow/pull/75297#discussion_r4337228712
##########
task-sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -1485,6 +1485,34 @@ def _check_subprocess_exit(
self.process_log.warning("Process exited abnormally",
exit_code=self._exit_code)
return self._exit_code
+ def _terminate_subprocess_after_monitor_error(self) -> None:
+ if self._exit_code is not None:
+ return
+
+ try:
+ self.cleanup_sockets_after_kill()
+ except Exception:
+ log.exception("Failed to clean up subprocess sockets after
supervisor loop error", pid=self.pid)
+
+ for sig in (signal.SIGTERM, signal.SIGKILL):
Review Comment:
done - now calls self.kill(signal.SIGTERM, force=True,
escalation_delay=KILLED_TASK_CLEANUP_TIME)
--
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]