|
|
|
@@ -66,8 +66,6 @@ public class ExperimentInstanceStatusTask { |
|
|
|
String finishedAt = (String) value.get("finishedAt"); |
|
|
|
|
|
|
|
if (StringUtils.isEmpty(finishedAt) && Constant.Running.equals(phase)) { |
|
|
|
ResourceOccupy resourceOccupy = new ResourceOccupy(); |
|
|
|
resourceOccupy.setState(Constant.State_valid); |
|
|
|
resourceOccupyService.deducing(Constant.TaskType_Workflow, null, Long.valueOf(experimentIns.getId()), key, startTime); |
|
|
|
} else if (StringUtils.isNotEmpty(finishedAt)) { |
|
|
|
resourceOccupyService.endDeduce(Constant.TaskType_Workflow, null, Long.valueOf(experimentIns.getId()), key, startTime); |
|
|
|
|