Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to

- πŸ›(frontend) redirect homepage to login when homepage feat is disabled #2521
- πŸ›(backend) ignore CSPs for API docs in development
- πŸ›(helm) show the database error while jobs wait for it to be ready #2578

### Changed

Expand Down
14 changes: 10 additions & 4 deletions src/helm/env.d/dev/values.impress.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ backend:
- "/bin/sh"
- "-c"
- |
while ! python manage.py check --database default > /dev/null 2>&1
attempt=0
until output=$(python manage.py check --database default 2>&1)
do
echo "Database not ready"
attempt=$((attempt + 1))
echo "Database check failed (attempt $attempt), retrying in 2s:"
echo "$output"
sleep 2
done

Expand All @@ -113,9 +116,12 @@ backend:
- "/bin/sh"
- "-c"
- |
while ! python manage.py check --database default > /dev/null 2>&1
attempt=0
until output=$(python manage.py check --database default 2>&1)
do
echo "Database not ready"
attempt=$((attempt + 1))
echo "Database check failed (attempt $attempt), retrying in 2s:"
echo "$output"
sleep 2
done

Expand Down
14 changes: 10 additions & 4 deletions src/helm/env.d/feature/values.impress.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ backend:
- "/bin/sh"
- "-c"
- |
while ! python manage.py check --database default > /dev/null 2>&1
attempt=0
until output=$(python manage.py check --database default 2>&1)
do
echo "Database not ready"
attempt=$((attempt + 1))
echo "Database check failed (attempt $attempt), retrying in 2s:"
echo "$output"
sleep 2
done

Expand All @@ -105,9 +108,12 @@ backend:
- "/bin/sh"
- "-c"
- |
while ! python manage.py check --database default > /dev/null 2>&1
attempt=0
until output=$(python manage.py check --database default 2>&1)
do
echo "Database not ready"
attempt=$((attempt + 1))
echo "Database check failed (attempt $attempt), retrying in 2s:"
echo "$output"
sleep 2
done

Expand Down
Loading
Loading