chore: speeds up startup healthchecks

This commit is contained in:
2025-05-23 15:40:56 -05:00
parent 81eb2d1f62
commit 168bf04550
4 changed files with 4 additions and 7 deletions

View File

@@ -1,9 +1,8 @@
#!/bin/sh
# Sleep for a second to ensure DB is awake and ready
SLEEP_TIME=$(shuf -i 2-5 -n 1)
SLEEP_TIME=$(shuf -i 2-4 -n 1)
echo "> Sleeping for ${SLEEP_TIME} seconds to wait for the database"
echo "> If there are errors after the migration runs, it's possible another container (scheduler, worker, etc.) already ran the migrations"
sleep $SLEEP_TIME
# Provision database