Open Ishankoradia opened 3 months ago
I am not aware of prefect but this issue, I believe, do not belong to it. I have seen this issue once when there was no resource left like CPU and RAM to use for a process. Otherwise connection is never closed. So I suggest to monitor your CPU and RAM usage. It must be loaded/used fully without leaving anything for postgres connection to run.
Thanks @tojimahammatov , it was indeed the cleanup services that were taking so much time & also our CPU was very high.
First check
Bug summary
Prefect keeps losing its connection to its own database. Error trace is given below. This usually happens after a deployment is run. I am using prefect version
2.13.5
with a remote postgres database.Reproduction
Error
Versions
Additional context
Any guidance on how to approach this would be appreciated.