CLOUDSTACK-7628:VM Worker job should be expunged one hour after

completion instead of currently being expunged whenever cleanup task
thread is run.
This commit is contained in:
Min Chen 2014-09-24 17:27:39 -07:00
parent b592e0af34
commit 4317a85e97

View File

@ -140,7 +140,7 @@ public class VmWorkJobDaoImpl extends GenericDaoBase<VmWorkJobVO, Long> implemen
// loop at application level to avoid mysql deadlock issues
SearchCriteria<VmWorkJobVO> sc = ExpungingWorkJobSearch.create();
sc.setParameters("jobStatus", JobInfo.Status.IN_PROGRESS);
sc.setParameters("lastUpdated", cutDate);
sc.setParameters("cutDate", cutDate);
sc.setParameters("dispatcher", "VmWorkJobDispatcher");
List<VmWorkJobVO> expungeList = listBy(sc);
for (VmWorkJobVO job : expungeList) {