You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/10 12:04:25 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #21431: [scheduler HA]catch sqlalchemy leaking LockNotAvailable Exception during multiple scheduler instances comes up

potiuk commented on a change in pull request #21431:
URL: https://github.com/apache/airflow/pull/21431#discussion_r803604482



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -866,10 +866,26 @@ def _do_scheduling(self, session) -> int:
                 # Make sure we only sent this metric if we obtained the lock, otherwise we'll skew the
                 # metric, way down
                 timer.stop(send=True)
-            except OperationalError as e:
+            except (OperationalError, LockNotAvailable) as e:

Review comment:
       Yeah 'try/except ImportError` should be nicely handled here.




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