Skip to content

fix: db status check#30

Open
matonb wants to merge 1 commit intokasmtech:release/1.18.1from
matonb:feature/db-status-check
Open

fix: db status check#30
matonb wants to merge 1 commit intokasmtech:release/1.18.1from
matonb:feature/db-status-check

Conversation

@matonb
Copy link

@matonb matonb commented Jan 6, 2026

DB Initialisation check fails to complete if the database is already running and initialised/

  1. First checks if the database is already initialized (by querying the settings table)
  2. If already initialized → exits immediately with success (exit 0)
  3. If not initialized → runs startup.sh

1. First checks if the database is already initialized (by querying the settings table)
2. If already initialized → exits immediately with success (exit 0)
3. If not initialized → runs startup.sh
darkhonor added a commit to darkhonor/helm-charts that referenced this pull request Mar 5, 2026
Port of kasmtech/kasm-helm#30 (matonb). Adds a pre-check in the
db-init-job that queries SELECT COUNT(*) FROM settings before running
startup.sh. If the database is already initialized, the job exits
immediately instead of running redundant Alembic migrations.

This prevents unnecessary lock acquisition during migrations when the
schema is already current, reducing the risk of the deadlock loop
documented in kasmtech/kasm-helm#36.

Upstream-PR: kasmtech/kasm-helm#30
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant