divaltor commented on code in PR #77020:
URL: https://github.com/apache/airflow/pull/77020#discussion_r4657796404
##########
task-sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -1805,6 +1820,9 @@ def wait(self) -> int:
self._monitor_subprocess()
finally:
self.selector.close()
+ if self._gc_frozen:
+ gc.unfreeze()
Review Comment:
Thanks, initially I looked how to improve memory usage in
`KubernetesExecutor` because it spawns fresh pods so `gc.get_freeze_count()`
there is always 0 since it starts new interpreter. I actually forgot that
people also use `LocalExecutor` and `CeleryExecutor` in Airflow where `fork`
and `prefork` inherit from their parent.
Updated PR.
--
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]