Skip to content

Commit 4317a85

Browse files
committed
CLOUDSTACK-7628:VM Worker job should be expunged one hour after
completion instead of currently being expunged whenever cleanup task thread is run.
1 parent b592e0a commit 4317a85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/jobs/src/org/apache/cloudstack/framework/jobs/dao/VmWorkJobDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void expungeCompletedWorkJobs(final Date cutDate) {
140140
// loop at application level to avoid mysql deadlock issues
141141
SearchCriteria<VmWorkJobVO> sc = ExpungingWorkJobSearch.create();
142142
sc.setParameters("jobStatus", JobInfo.Status.IN_PROGRESS);
143-
sc.setParameters("lastUpdated", cutDate);
143+
sc.setParameters("cutDate", cutDate);
144144
sc.setParameters("dispatcher", "VmWorkJobDispatcher");
145145
List<VmWorkJobVO> expungeList = listBy(sc);
146146
for (VmWorkJobVO job : expungeList) {

0 commit comments

Comments
 (0)