Skip to content

Commit

Permalink
Add try...catch.. for processTaskQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlzhang committed Apr 12, 2024
1 parent 49cde4f commit 8d021c5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ private boolean processTaskQueue() {
if (task == null) {
break;
}
task.run();
try {
task.run();
} catch (Exception e) {
logger.warning("Task run exception", e);
}
completedTaskCount.inc();
tasksProcessed = true;
}
Expand Down

0 comments on commit 8d021c5

Please sign in to comment.