Skip to content

Improve db exception handling on websocket#3131

Merged
hugobarauna merged 4 commits intomainfrom
hb-improve-db-exception-handling-on-websocket
Feb 6, 2026
Merged

Improve db exception handling on websocket#3131
hugobarauna merged 4 commits intomainfrom
hb-improve-db-exception-handling-on-websocket

Conversation

@hugobarauna
Copy link
Member

@hugobarauna hugobarauna commented Feb 4, 2026

When the Teams server returns a 503 (service unavailable), treat it as transient: mark the hub as disconnected and retry with backoff, rather than deleting the hub like other server errors. This prevents permanent disconnection from temporary outages (e.g., database unavailable).

Related to https://github.com/dashbitco-labs/teams/pull/588

Special-case HTTP 503 responses: send :service_unavailable to TeamClein and perform a backoff
retry.

Otherwise, the TeamClient process could die and not be restarted, for a transient potential error.
hugobarauna and others added 2 commits February 5, 2026 18:21
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
@hugobarauna hugobarauna merged commit c70c4d9 into main Feb 6, 2026
6 of 7 checks passed
@hugobarauna hugobarauna deleted the hb-improve-db-exception-handling-on-websocket branch February 6, 2026 13:00
jonatanklosko added a commit that referenced this pull request Feb 19, 2026
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.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.

3 participants