Skip to content

Commit e17f915

Browse files
committed
show overflow
1 parent 58028ad commit e17f915

File tree

1 file changed

+2
-1
lines changed
  • services/director-v2/src/simcore_service_director_v2/api/dependencies

1 file changed

+2
-1
lines changed

services/director-v2/src/simcore_service_director_v2/api/dependencies/database.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ def get_base_repository(engine: AsyncEngine, repo_type: type[RepoType]) -> RepoT
3232

3333
if (checkedin < 2) and (total_size > 1): # noqa: PLR2004
3434
logger.warning(
35-
"Database connection pool near limits: total=%d, in_use=%d, available=%d",
35+
"Database connection pool near limits: total=%d, in_use=%d, available=%d, overflow=%d",
3636
total_size,
3737
checkedout,
3838
checkedin,
39+
max(checkedout - total_size, 0),
3940
)
4041

4142
return repo_type(db_engine=engine)

0 commit comments

Comments
 (0)