check-migrations

Definition

Checks if the database migration has finished. The check can be one-time or continuous until the timeout expires.

Usage

$ airflow db check-migrations
                            [-h]
                            [-t MIGRATION_WAIT_TIMEOUT]
                            [-v]

Arguments

Parameter Description

-t, --migration-wait-timeout

Timeout to wait in seconds for a database to migrate. Default: 60

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

To check if the database migration have finished in 5 minutes, run:

$ airflow db check-migrations -t 300
Found a mistake? Seleсt text and press Ctrl+Enter to report it