We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ebae93 commit 5147fc2Copy full SHA for 5147fc2
plain-models/plain/models/cli.py
@@ -94,10 +94,12 @@ def db_wait():
94
waiting_for.append(conn.alias)
95
96
if waiting_for:
97
- click.secho(
98
- f"Waiting for database (attempt {attempts}): {', '.join(waiting_for)}",
99
- fg="yellow",
100
- )
+ if attempts > 1:
+ # After the first attempt, start printing them
+ click.secho(
+ f"Waiting for database (attempt {attempts}): {', '.join(waiting_for)}",
101
+ fg="yellow",
102
+ )
103
time.sleep(1.5)
104
else:
105
click.secho(f"Database ready: {', '.join(connections)}", fg="green")
0 commit comments