Closed vtm9 closed 3 months ago
also there might be a global rescue with any error and log+reraise?
rescue e ->
Logger.warning("Unexpected error in the Oban.Peer: inspect(e)")
reraise
The Postgres peer only catches the undefined table error currently to provide an upgrade note. Catching all errors could mask actual connectivity issues and trigger a situation with multiple leaders.
Rescuing more errors or catching exits requires some thought.
Precheck
Hello, thank you a lot for so nice library!
Environment
Current Behavior
I encountered this error multiple times. During a database downtime, after the database came back to life, Oban wasn't started.
Expected Behavior
Probably handle
DBConnection.ConnectionError
in Peer, cause now it handles onlyPostgrex.Error
in rescue