提交 62cec512 authored 作者: 黄夏豪's avatar 黄夏豪

fix(base): 修改了job执行不连贯的BUG

上级 92382594
......@@ -129,9 +129,12 @@ public class LogQueueRuntime {
testExecuteLog.setUserId(userId);
testExecuteLog.setType(type);
testExecuteLog.setUniqueKey(uniqueKey);
//判断当前执行池中是否存在 执行对象,如果存在的话证明,本次执行与执行池中的对象为连贯执行,无需进行判重
if (getCurrentTestExecute(ThreadUtil.currentThreadId())==null){
if (checkIsInRun(testExecuteLog)) {
throw new JobOrCaseRunningException("当前 任务/用例 正在执行中");
}
}
LogQueueRuntime.put(ThreadUtil.currentThreadId(), testExecuteLog);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论