diff --git a/airflow/utils/db.py b/airflow/utils/db.py index 79e9c9f8e5a..979e0202527 100644 --- a/airflow/utils/db.py +++ b/airflow/utils/db.py @@ -613,7 +613,10 @@ def check_migrations(timeout): if source_heads == db_heads: break if ticker >= timeout: - raise TimeoutError(f"There are still unapplied migrations after {ticker} seconds.") + raise TimeoutError( + f"There are still unapplied migrations after {ticker} seconds. " + f"Migration Head(s) in DB: {db_heads} | Migration Head(s) in Source Code: {source_heads}" + ) ticker += 1 time.sleep(1) log.info('Waiting for migrations... %s second(s)', ticker)