From 779ac38513cd05a6ef614a3c0b83122eaee5ef47 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 18 Feb 2022 11:40:58 -0500 Subject: [PATCH] Fix validate-all --- crc/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crc/__init__.py b/crc/__init__.py index 2f90bbf1..f856ff33 100644 --- a/crc/__init__.py +++ b/crc/__init__.py @@ -132,7 +132,7 @@ def validate_all(study_id, category=None, spec_id=None): study = session.query(StudyModel).filter(StudyModel.id == study_id).first() g.user = session.query(UserModel).filter(UserModel.uid == study.user_uid).first() g.token = "anything_is_fine_just_need_something." - specs = WorkflowSpecService.get_specs() + specs = WorkflowSpecService().get_specs() for spec in specs: if spec_id and spec_id != spec.id: continue @@ -145,11 +145,11 @@ def validate_all(study_id, category=None, spec_id=None): print(f"Skipping {spec.id} in category {spec.category.display_name}, it is disabled for this study.") else: print(f"API Error {e.code}, validate workflow {spec.id} in Category {spec.category.display_name}") - return + continue except WorkflowTaskExecException as e: print(f"Workflow Error, {e}, in Task {e.task.name} validate workflow {spec.id} in Category {spec.category.display_name}") - return + continue except Exception as e: - print(f"Unexpected Error, {e} validate workflow {spec.id} in Category {spec.category.display_name}") + print(f"Unexpected Error ({e.__class__.__name__}), {e} validate workflow {spec.id} in Category {spec.category.display_name}") print(e) - return + continue