mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	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:
		
							parent
							
								
									b592e0af34
								
							
						
					
					
						commit
						4317a85e97
					
				| @ -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) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user