Skip to content

Commit

Permalink
Bugfix: catch the exception when saving to db to avoid queue block
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou9584 committed Nov 29, 2023
1 parent f6736be commit d5ba2fa
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit d5ba2fa

Please sign in to comment.