Skip to content

Psycopg database connection exceptions are not handled #69

@chrisarridge

Description

@chrisarridge

Brief Description
If the database connection is interrupted and raises an exception, e.g., with a psycopg.errors.AdminShutdown and then sqlalchemy.exc.OperationalError, RYD does not handle this exception leading to a crash and stack trace. This is the first time I've seen this (running on dev) and a quick grep of the logs shows it happening a few times before now.

Severity
Medium

Issue Location
See application logs on dev (2026-03-04T08:30:17,471Z).

Expected Results/Behaviour
Exception is handled and logs are generated to enable easier debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions