Skip to content

Add database connection check to install and update tasks - #445

Merged
ddon merged 3 commits into
BeamLabEU:devfrom
construct-d:dev
Mar 23, 2026
Merged

Add database connection check to install and update tasks#445
ddon merged 3 commits into
BeamLabEU:devfrom
construct-d:dev

Conversation

@construct-d

Copy link
Copy Markdown
Contributor

No description provided.

@ddon
ddon merged commit bc7c842 into BeamLabEU:dev Mar 23, 2026
4 of 6 checks passed
ddon added a commit that referenced this pull request Mar 23, 2026
…m status task

- Rename check?/check! to connected?/ensure_connected! for idiomatic Elixir naming
- Fix @SPEC from no_return() to :ok | no_return() (function does return on success)
- Return explicit :ok instead of nil on happy path
- Use Mix.env() in error message instead of hardcoded config/dev.exs
- Add timeout: 5_000 to SELECT 1 query to prevent hangs
- Remove DbConnectionCheck from status task — it already handles DB failures
  gracefully via get_database_status/1 and shows "Connection failed" in the
  status tree; the hard exit was preventing status from doing its job
- Add PR review docs for #445

Co-Authored-By: Claude Opus 4.6 (1M context) <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.

2 participants