mirror of
https://gitee.com/jd-platform-opensource/asyncTool.git
synced 2024-12-19 03:30:30 +08:00
优化有多个依赖的情况:如果当前任务已经完成了,依赖的其他任务拿到锁再进来时,不需要执行下面的逻辑了。
This commit is contained in:
parent
c404be0b65
commit
508724c159
@ -217,7 +217,7 @@ public class WorkerWrapper<T, V> {
|
||||
|
||||
private synchronized void doDependsJobs(ExecutorService executorService, List<DependWrapper> dependWrappers, WorkerWrapper fromWrapper, long now, long remainTime) {
|
||||
//如果当前任务已经完成了,依赖的其他任务拿到锁再进来时,不需要执行下面的逻辑了。
|
||||
if (!checkIsNullResult()) {
|
||||
if (getState() != INIT) {
|
||||
return ;
|
||||
}
|
||||
boolean nowDependIsMust = false;
|
||||
|
Loading…
Reference in New Issue
Block a user