You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "kaxil (via GitHub)" <gi...@apache.org> on 2025/10/26 13:24:39 UTC

Re: [PR] Fix MyPy type errors /api_fastapi/execution_api/,/airflow/jobs/, /airflow/models/ in Sqlalchemy 2 migration [airflow]

kaxil commented on code in PR #57277:
URL: https://github.com/apache/airflow/pull/57277#discussion_r2463814233


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -340,7 +340,8 @@ def _executable_task_instances_to_queued(self, max_tis: int, session: Session) -
 
         executable_tis: list[TI] = []
 
-        if session.get_bind().dialect.name == "postgresql":
+        bind = session.get_bind()
+        if bind is not None and bind.dialect.name == "postgresql":

Review Comment:
   there is a `get_dialect_name` func in one of the utils module



-- 
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-unsubscribe@airflow.apache.org

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