Skip to content

Commit 613501a

Browse files
committed
pylint
1 parent 5329752 commit 613501a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_base_repository(engine: AsyncEngine, repo_type: type[RepoType]) -> RepoT
3030
checkedout = engine.pool.checkedout() # type: ignore # connections in use
3131
total_size = engine.pool.size() # type: ignore # current total connections
3232

33-
if (checkedin <= 1) and (total_size > 1):
33+
if (checkedin < 2) and (total_size > 1): # noqa: PLR2004
3434
logger.warning(
3535
"Database connection pool near limits: total=%d, in_use=%d, available=%d",
3636
total_size,

0 commit comments

Comments
 (0)