Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
v1.3.0, v1.5.0
-
None
Description
MetadataCleanupJob can not clean jobs.
for (ExecutablePO executable : allExecutable) {
long lastModified = executable.getLastModified();
ExecutableOutputPO output = executableDao.getJobOutput(executable.getUuid());
if (System.currentTimeMillis() - lastModified > TIME_THREADSHOLD_FOR_JOB && (output.getStatus().equals(JobStatusEnum.FINISHED.toString()) || output.getStatus().equals(JobStatusEnum.DISCARDED.toString()))) {
toDeleteResource.add(ResourceStore.EXECUTE_PATH_ROOT + "/" + executable.getUuid());
toDeleteResource.add(ResourceStore.EXECUTE_OUTPUT_ROOT + "/" + executable.getUuid());
for (ExecutablePO task : executable.getTasks())
{ toDeleteResource.add(ResourceStore.EXECUTE_PATH_ROOT + "/" + task.getUuid()); toDeleteResource.add(ResourceStore.EXECUTE_OUTPUT_ROOT + "/" + task.getUuid()); } }
}