Skip to content

Commit 6d103e6

Browse files
author
Anthony Xu
committed
use correct interval for cleanTask and transitionTask
1 parent 3d497f6 commit 6d103e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ protected void advanceExpunge(VMInstanceVO vm) throws ResourceUnavailableExcepti
569569
@Override
570570
public boolean start() {
571571
// TODO, initial delay is hardcoded
572-
_executor.scheduleAtFixedRate(new TransitionTask(), 5000, VmJobStateReportInterval.value(), TimeUnit.SECONDS);
573-
_executor.scheduleAtFixedRate(new CleanupTask(), VmOpCleanupInterval.value(), VmOpCleanupInterval.value(), TimeUnit.SECONDS);
572+
_executor.scheduleAtFixedRate(new CleanupTask(), 5000, VmJobStateReportInterval.value(), TimeUnit.SECONDS);
573+
_executor.scheduleAtFixedRate(new TransitionTask(), VmOpCleanupInterval.value(), VmOpCleanupInterval.value(), TimeUnit.SECONDS);
574574
cancelWorkItems(_nodeId);
575575

576576
// cleanup left over place holder works

0 commit comments

Comments
 (0)