diff --git a/center/src/main/java/com/microsoft/hydralab/center/service/TestTaskService.java b/center/src/main/java/com/microsoft/hydralab/center/service/TestTaskService.java index dc4c02e58..1062b1c34 100644 --- a/center/src/main/java/com/microsoft/hydralab/center/service/TestTaskService.java +++ b/center/src/main/java/com/microsoft/hydralab/center/service/TestTaskService.java @@ -111,8 +111,12 @@ public void runTask() { //the task will be saved in memory if taskSpec is error testTask.setStatus(TestTask.TestStatus.EXCEPTION); testTask.setTestErrorMsg(e.getMessage()); - testDataService.saveTestTaskData(testTask); - queueIterator.remove(); + try{ + testDataService.saveTestTaskData(testTask); + queueIterator.remove(); + }catch (Exception ex) { + logger.error(ex.getMessage(), ex); + } } } }