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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]