hydra-queue-runner: don't SIGABRT if postgresql is unreachable on startup #66

Merged
ma27 merged 1 commit from ma27/hydra:pg-initial-conn-error into main 2025-10-05 21:11:24 +00:00
Member

Instead of stack-traces & SIGABRT, we now get the following error
on stderr (and still a non-zero exit-code, of course):

error: hydra-queue-runner failed to connect to PostgreSQL!
       connection to server at "localhost" (::1), port 64444 failed: Connection refused
             Is the server running on that host and accepting TCP/IP connections?
       connection to server at "localhost" (127.0.0.1), port 64444 failed: Connection refused
             Is the server running on that host and accepting TCP/IP connections?

Closes #57

cc @vriska @raito

Instead of stack-traces & SIGABRT, we now get the following error on stderr (and still a non-zero exit-code, of course): error: hydra-queue-runner failed to connect to PostgreSQL! connection to server at "localhost" (::1), port 64444 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 64444 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? Closes #57 cc @vriska @raito
Instead of stack-traces & SIGABRT, we now get the following error
on stderr (and still a non-zero exit-code, of course):

    error: hydra-queue-runner failed to connect to PostgreSQL!
           connection to server at "localhost" (::1), port 64444 failed: Connection refused
                 Is the server running on that host and accepting TCP/IP connections?
           connection to server at "localhost" (127.0.0.1), port 64444 failed: Connection refused
                 Is the server running on that host and accepting TCP/IP connections?

Closes #57
ma27 force-pushed pg-initial-conn-error from e93a266cf1 to ffca7d137d 2025-10-05 21:10:39 +00:00 Compare
ma27 merged commit dbe596d5a3 into main 2025-10-05 21:11:24 +00:00
ma27 deleted branch pg-initial-conn-error 2025-10-05 21:11:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/hydra#66
No description provided.