mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
timeout closing db pool
This commit is contained in:
+3
-1
@@ -566,8 +566,10 @@ Windmill Community Edition {GIT_VERSION}
|
||||
_ = db.close() => {
|
||||
tracing::info!("Database connection pool closed");
|
||||
},
|
||||
_ = tokio::time::sleep(Duration::from_secs(15)) => {
|
||||
tracing::warn!("Could not close database connection pool in time (15s). Exiting anyway.");
|
||||
}
|
||||
}
|
||||
db.close().await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user