iw-pavan opened a new issue, #33896:
URL: https://github.com/apache/airflow/issues/33896

   ### Apache Airflow version
   
   2.7.0
   
   ### What happened
   
   When we run scheduler/triggerer with statsd metrics enabled it crashes with 
db commit errors with -D argument. But when we run scheduler in foreground it 
works as expected and statsd metrics also updated.
   
   Traceback (most recent call last):
     File 
"/Users/pavan/Desktop/test/nvenv/lib/python3.9/site-packages/sqlalchemy/engine/base.py",
 line 1094, in _commit_impl
       self.engine.dialect.do_commit(self.connection)
     File 
"/Users/pavan/Desktop/test/nvenv/lib/python3.9/site-packages/sqlalchemy/engine/default.py",
 line 686, in do_commit
       dbapi_connection.commit()
   psycopg2.OperationalError: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   Enable statsd metrics and run scheduler with -D arg.
   
   ### Operating System
   
   Mac/Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to