Some new problem have arised today, that the catalog-rebuilder is loosing the connection to the postgis-operator postgresql database.
The current implementation is a bit bad, since we only create the database connection once when the flask app is initializing.
A better and recommended design pattern, is to ask for a new connection object every time it is needed, and reconnect then if the conncetion are broken.
Some new problem have arised today, that the catalog-rebuilder is loosing the connection to the postgis-operator postgresql database.
The current implementation is a bit bad, since we only create the database connection once when the flask app is initializing.
A better and recommended design pattern, is to ask for a new connection object every time it is needed, and reconnect then if the conncetion are broken.