potiuk commented on code in PR #41207:
URL: https://github.com/apache/airflow/pull/41207#discussion_r1701484518
##########
airflow/utils/db.py:
##########
@@ -1660,11 +1660,14 @@ def upgradedb(
if errors_seen:
exit(1)
- if not to_revision and not _get_current_revision(session=session) and not
use_migration_files:
+ current_revision = _get_current_revision(session=session)
Review Comment:
Should we move it to inside "with create global lock"? While it causes the
lock to be applied for all such migrations - for a moment even if current
revision is "current", it will have the other migrations to do even less work.
--
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]