Skip to content

Commit 071004e

Browse files
author
Anthony Xu
committed
removed start/stop VR from queue
1 parent 674af6e commit 071004e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

core/src/com/cloud/agent/api/StartCommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public VirtualMachineTO getVirtualMachine() {
3636

3737
@Override
3838
public boolean executeInSequence() {
39+
//VR start doesn't go through queue
40+
if (vm.getName() != null && vm.getName().startsWith("r-")) {
41+
return false;
42+
}
3943
return executeInSequence;
4044
}
4145

core/src/com/cloud/agent/api/StopCommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public StopCommand(String vmName, boolean executeInSequence, boolean checkBefore
5656

5757
@Override
5858
public boolean executeInSequence() {
59+
//VR stop doesn't go through queue
60+
if (vmName != null && vmName.startsWith("r-")) {
61+
return false;
62+
}
5963
return executeInSequence;
6064
}
6165

0 commit comments

Comments
 (0)