Skip to content

Commit 43099ab

Browse files
committed
feat: Provide a better output when "airflow check db" fails
1 parent 732a0f0 commit 43099ab

File tree

1 file changed

+1
-1
lines changed
  • charts/airflow/templates/_helpers

1 file changed

+1
-1
lines changed

charts/airflow/templates/_helpers/pods.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ EXAMPLE USAGE: {{ include "airflow.init_container.check_db" (dict "Release" .Rel
8585
{{- if .Values.airflow.legacyCommands }}
8686
- "exec timeout 60s airflow checkdb"
8787
{{- else }}
88-
- "exec timeout 60s airflow db check"
88+
- "exec bash -c 'timeout 60s airflow db check; exit_code=$?; if [ $exit_code -eq 124 ]; then echo \"Database connection check timed out after 60s\"; elif [ $exit_code -ne 0 ]; then echo \"Database check failed with code $exit_code\"; fi; exit $exit_code'"
8989
{{- end }}
9090
{{- if .volumeMounts }}
9191
volumeMounts:

0 commit comments

Comments
 (0)