提交 eac7a050 编写于 作者: C CaptainB

refactor: 测试结束时清理待执行队列

上级 2075eba1
......@@ -20,7 +20,9 @@ public class ReportTasks {
public static void clearTasks(String reportId) {
for (Future<?> task : getTasks(reportId)) {
try {
task.cancel(true);
if (!task.isDone()) {
task.cancel(true);
}
} catch (Exception e) {
LogUtil.error("取消任务失败: ", e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册