check

Definition

Checks if the database can be reached.

Usage

$ airflow db check
                    [-h]
                    [--retry RETRY]
                    [--retry-delay RETRY_DELAY]
                    [-v]

Arguments

Parameter Description

--retry

Retry database check upon failure. Default value is 0 (no retry)

--retry-delay

Wait time between retries in seconds. Default: 1

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

To perform the database connection check, run:

$ airflow db check

Output example:

[2025-04-08T05:20:05.969+0000] {db.py:1741} INFO - Connection successful.
Found a mistake? Seleсt text and press Ctrl+Enter to report it