Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More verbose logs when running airflow check_migrations #15662

Merged
merged 1 commit into from
May 5, 2021

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented May 5, 2021

Currently it just shows "TimeoutError: There are still unapplied migrations after 60 seconds. " which is not that helpful.

This commit adds more info to show the difference in migrations in DB and source code running check_migrations:

Now:

TimeoutError: There are still unapplied migrations after 60 seconds. Migration Head(s) in DB: {'e165e7455d70'} | Migration Head(s) in Source Code: {'a13f7613ad25'}

closes #15650


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

Currently it just shows "TimeoutError: There are still unapplied migrations after 60 seconds. " which is not that helpful.

This commit adds more info to show the difference in migrations in DB and source code running `check_migrations`:

Now:

```
TimeoutError: There are still unapplied migrations after 60 seconds. Migration Head(s) in DB: {'e165e7455d70'} | Migration Head(s) in Source Code: {'a13f7613ad25'}
```

closes apache#15650
@kaxil kaxil added this to the Airflow 2.1 milestone May 5, 2021
@kaxil kaxil requested a review from vikramkoka May 5, 2021 00:23
@kaxil kaxil added the area:helm-chart Airflow Helm Chart label May 5, 2021
@kaxil kaxil requested a review from ephraimbuddy May 5, 2021 00:28
@potiuk potiuk merged commit 86ad628 into apache:master May 5, 2021
@kaxil kaxil deleted the add-logging-check-migrations branch May 5, 2021 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:helm-chart Airflow Helm Chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: check_migrations more verbose documentation
3 participants