fix: remove redundant asyncio import in entrypoint.sh
This commit is contained in:
@@ -9,7 +9,7 @@ echo "[entrypoint] Waiting for database to be ready..."
|
|||||||
|
|
||||||
# Wait for PostgreSQL to accept connections (max 30s retries)
|
# Wait for PostgreSQL to accept connections (max 30s retries)
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 30); do
|
||||||
if python -c "import asyncpg,os,asyncio; asyncio.get_event_loop().run_until_complete(
|
if python -c "import asyncpg,os; asyncio.get_event_loop().run_until_complete(
|
||||||
asyncpg.connect(
|
asyncpg.connect(
|
||||||
host=os.getenv('POSTGRES_HOST','db'),
|
host=os.getenv('POSTGRES_HOST','db'),
|
||||||
port=int(os.getenv('POSTGRES_PORT','5432')),
|
port=int(os.getenv('POSTGRES_PORT','5432')),
|
||||||
|
|||||||
Reference in New Issue
Block a user