ashb commented on code in PR #45537:
URL: https://github.com/apache/airflow/pull/45537#discussion_r1910170285


##########
task_sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -342,10 +345,11 @@ def start(
 
             # Python GC should delete these for us, but lets make double sure 
that we don't keep anything
             # around in the forked processes, especially things that might 
involve open files or sockets!
-            del path
             del client
-            del what
             del logger
+            for k in list(on_child_started_kwargs.keys()):
+                v = on_child_started_kwargs.pop(k)
+                del v

Review Comment:
   I think you can just do this
   ```suggestion
               del on_child_started_kwargs
   ```
   



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