File tree 1 file changed +6
-3
lines changed
services/web/server/src/simcore_service_webserver/projects
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
"""
7
7
import asyncio
8
+ import concurrent .futures
8
9
import logging
9
10
import textwrap
10
11
import uuid as uuidlib
@@ -406,15 +407,17 @@ async def __load_projects(
406
407
except ProjectInvalidRightsError :
407
408
continue
408
409
try :
409
- import concurrent .futures
410
410
411
411
with concurrent .futures .ThreadPoolExecutor () as pool :
412
412
await asyncio .get_event_loop ().run_in_executor (
413
413
pool , ProjectAtDB .from_orm , row
414
414
)
415
- # ProjectAtDB.from_orm(row)
416
415
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
+ )
418
421
continue
419
422
prj = dict (row .items ())
420
423
if filter_by_services :
You can’t perform that action at this time.
0 commit comments