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



##########
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:
       Thirdly: you aren't importing this from anywhere.




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