tirkarthi commented on issue #56879: URL: https://github.com/apache/airflow/issues/56879#issuecomment-3422562615
`engine.dispose` was run in `clean_in_fork` in `after_in_child` . I was wondering if calling `def before(): engine.dispose(close=False)` in `register_at_fork(before=before)` would help here since the sqlalchemy documentation recommends calling `engine.dispose(close=False)` before child process is created and I assume here it's calling `engine.dispose` after child is created. https://docs.python.org/3/library/os.html#os.register_at_fork before is a function called before forking a child process. after_in_parent is a function called from the parent process after forking a child process. after_in_child is a function called from the child process. -- 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]
