sarvensis commented on issue #41523:
URL: https://github.com/apache/airflow/issues/41523#issuecomment-2735681037

   Hi!
   
   As a temporary solution:
   
   - Upgrade to version 2.10.5
   - Access the database through your session:
   
   ```python
   from airflow.settings import engine
   from sqlalchemy import text
   with engine.connect() as connection:
       result = connection.execute(
           text("""
               SELECT COUNT(*)
               FROM dag_run
               WHERE dag_id = :dag_id
           """),
           {"dag_id": self.current_dag_id}
       )
       count = result.scalar()
   ```


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