Skip to content

Commit c073dd3

Browse files
committed
@pcrespov reviews
1 parent e51ab6c commit c073dd3

File tree

1 file changed

+6
-3
lines changed
  • services/web/server/src/simcore_service_webserver/projects

1 file changed

+6
-3
lines changed

services/web/server/src/simcore_service_webserver/projects/projects_db.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
"""
77
import asyncio
8+
import concurrent.futures
89
import logging
910
import textwrap
1011
import uuid as uuidlib
@@ -406,15 +407,17 @@ async def __load_projects(
406407
except ProjectInvalidRightsError:
407408
continue
408409
try:
409-
import concurrent.futures
410410

411411
with concurrent.futures.ThreadPoolExecutor() as pool:
412412
await asyncio.get_event_loop().run_in_executor(
413413
pool, ProjectAtDB.from_orm, row
414414
)
415-
# ProjectAtDB.from_orm(row)
416415
except ValidationError as exc:
417-
log.warning("project failed validation: %s", exc)
416+
log.warning(
417+
"project in db with uuid [%s] failed validation, please check. error: %s",
418+
row.get("id"),
419+
exc,
420+
)
418421
continue
419422
prj = dict(row.items())
420423
if filter_by_services:

0 commit comments

Comments
 (0)