wjddn279 commented on issue #56879:
URL: https://github.com/apache/airflow/issues/56879#issuecomment-3424087166

   @tirkarthi 
   
   I think the current behavior (running `clean_in_fork` in `after_in_child`) 
is correct.
   The intention behind this behavior is to ensure that when a child process is 
forked, it detaches from the parent’s pool connections to avoid any unwanted 
side effects.
   
   The key point is that pool recreating must occur in the child process. If it 
happens in the parent process before the fork (as in the case of 
`register_at_fork(before=before)`), the child process will inherit the copied 
pool object from the parent, which is not the intended behavior.


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