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

completion instead of currently being expunged whenever cleanup task
thread is run.
(cherry picked from commit 4317a85e97643c681b98b3e58990ec2f22abedd8)
This commit is contained in:
Min Chen 2014-09-24 17:27:39 -07:00 committed by David Nalley
parent 555b20f7ec
commit 3ebf49ab28

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) {