VishakBaddur commented on code in PR #77020:
URL: https://github.com/apache/airflow/pull/77020#discussion_r4661058558
##########
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:
Checked cf77af6 against the cases from this thread, with `_is_gc_frozen`
copied into a standalone script on CPython 3.10, 3.11, 3.12, 3.13 and 3.14:
`False` on a fresh interpreter (including 3.12's startup count of 375), `True`
in a child forked from a frozen parent, and `False` again after `gc.unfreeze()`.
`test_supervisor.py` on 3.12 now gives the same result in forward and
reversed order, and the GC tests pass when run on their own; the only failures
are 3 tests that also fail on macOS on main. Looks good to me.
--
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]