Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hanged DB connections due to early ConnectionHandler initalization #334

Open
stakhovsky opened this issue Aug 1, 2022 · 0 comments
Open

Comments

@stakhovsky
Copy link

stakhovsky commented Aug 1, 2022

migrations.py imports connections at a module level that leads to ConnectionHandler initialization and creation of DB connection.
apps.py imports migrations.py so ConnectionHandler are being initialized on each stage of application initialization.
It seems like the import of ExportMigrations should be changed to function-level as it is described in documentation.
PS PROMETHEUS_EXPORT_MIGRATIONS option change have no effect to this behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant