metaflow-service icon indicating copy to clipboard operation
metaflow-service copied to clipboard

Bugs in the `AsyncPostgresDB` initialization retry logic

Open fumoboy007 opened this issue 1 year ago • 0 comments

AsyncPostgresDB initializes a PostgreSQL connection pool. It has retry logic to handle initialization failures; however, there are a couple bugs in that logic:

  • Does not raise the exception when initialization fails.
  • Creates the connection pool multiple times even if it was already successful.

fumoboy007 avatar Sep 09 '24 22:09 fumoboy007