phoenix_pubsub_postgresql
phoenix_pubsub_postgresql copied to clipboard
DB unavailability handling
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?
Postgrex.Notifications supports :auto_reconnect option https://hexdocs.pm/postgrex/Postgrex.Notifications.html#start_link/1