phoenix_pubsub_postgresql icon indicating copy to clipboard operation
phoenix_pubsub_postgresql copied to clipboard

DB unavailability handling

Open prepor opened this issue 1 year ago • 1 comments

Hi!

In case of DB disconnection and (probably short) DB unavailability phoenix_pubsub_postgresql crashes constantly on restarts and as a result, crashes the whole supervisors tree. I would love to keep the app running with periodic reconnection attempts.

What do you think? Is this intended behavior? Any way how to change it?

prepor avatar Apr 05 '24 13:04 prepor

Postgrex.Notifications supports :auto_reconnect option https://hexdocs.pm/postgrex/Postgrex.Notifications.html#start_link/1

prepor avatar Apr 05 '24 14:04 prepor