ashb commented on a change in pull request #21431:
URL: https://github.com/apache/airflow/pull/21431#discussion_r803274098
##########
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:
We also need to run without psycopg2 installed (i.e. if the user is on
mysql then psycopg2 won't be around to import from)
--
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]