VxD
05/20/2022, 12:21 AMoptimize_for_dagit
with a pool of 1, keeping one single connection (and hoping it stays open).
If the UI is not accessed for some time, the connection to the DB is lost and the page will appear to hang until refreshed.
Is there a way to force Dagit to connect to the DB with different pool parameters (e.g. pool_pre_ping
or pool_recycle
) to try and mitigate this?alex
05/20/2022, 4:08 PMthe page will appear to hang until refreshedcan you be more precise? All web requests hang until the server is restarted or a specific web page appears hung until it is refreshed?
VxD
05/23/2022, 12:28 AMmain
and monkey patch the create_engine
function to inject a pool_recycle
argument set to 25 minutes.Roel Hogervorst
06/24/2022, 9:29 AMVxD
07/01/2022, 10:42 AMcreate_engine
function to inject the pool_recycle
parameter, then calls dagit’s main
. Dirty, but does the trick.Roel Hogervorst
07/01/2022, 12:26 PMVxD
07/01/2022, 12:29 PMRoel Hogervorst
07/01/2022, 12:29 PM