potiuk edited a comment on issue #12969:
URL: https://github.com/apache/airflow/issues/12969#issuecomment-744273351


   > for many task handlers, we have system tests. I will try to run these 
tests.
   
   Handlers work all right - I checked them (at least S3 works fine and write 
logs when close() is called). I am not sure if we have system tests that run 
forking/process exiting. It looks like we have two independent problems in fact:
   
   1) logging.shutdown is not called even if registered by atexit() when 
forking is used
   
   2) when forking is disabled, login.shutddown is called all right, but it is 
called after the `dispose_orm` method gets called by atexit handler before: 
`atexit.register(dispose_orm)` in settings.py. Then retrieving the connection 
in s3_task_handler fails because it tries to read the connection from 
databse/orm and the orm sqlachemy is already in `disposed' state.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to