postgres: fail more gracefully when database is disconnected #38

Closed
opened 2023-09-04 03:20:30 +00:00 by asonix · 1 comment
Owner

currently, background jobs will attempt popping jobs in an infinite loop, pinning the CPU. This is not a great failure condition

currently, background jobs will attempt popping jobs in an infinite loop, pinning the CPU. This is not a great failure condition
asonix added this to the 0.5.0 milestone 2023-09-04 03:20:42 +00:00
Author
Owner

if workers fail with a "disconnected" error the workers now wait 10 seconds before trying again. This might be enough but I'd like to take another look at it

if workers fail with a "disconnected" error the workers now wait 10 seconds before trying again. This might be enough but I'd like to take another look at it
Sign in to join this conversation.
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: asonix/pict-rs#38
No description provided.