|
|
|
@@ -54,10 +54,10 @@ public class ActiveLearnInsStatusTask { |
|
|
|
if (Constant.Running.equals(activeLearnIns.getStatus())) { |
|
|
|
resourceOccupyService.deducing(Constant.TaskType_ActiveLearn, null, activeLearnIns.getId(), null, null); |
|
|
|
} |
|
|
|
// else if (Constant.Failed.equals(activeLearnIns.getStatus()) || Constant.Terminated.equals(activeLearnIns.getStatus()) |
|
|
|
// || Constant.Succeeded.equals(activeLearnIns.getStatus())) { |
|
|
|
// resourceOccupyService.endDeduce(Constant.TaskType_ActiveLearn, null, activeLearnIns.getId(), null, null); |
|
|
|
// } |
|
|
|
else if (Constant.Failed.equals(activeLearnIns.getStatus()) || Constant.Terminated.equals(activeLearnIns.getStatus()) |
|
|
|
|| Constant.Succeeded.equals(activeLearnIns.getStatus())) { |
|
|
|
resourceOccupyService.endDeduce(Constant.TaskType_ActiveLearn, null, activeLearnIns.getId(), null, null); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
activeLearnIns.setStatus(Constant.Failed); |
|
|
|
|