mirror of
https://github.com/datarhei/core.git
synced 2025-11-02 20:24:02 +08:00
Don't mark processes as errNotEnoughResourcesForDeployment when budget has been used up
This commit is contained in:
@@ -361,7 +361,7 @@ func synchronize(wish map[string]string, want []store.Process, have []node.Proce
|
||||
}
|
||||
}
|
||||
|
||||
if len(nodeid) != 0 && opBudget > 0 {
|
||||
if len(nodeid) != 0 {
|
||||
opStackAdd = append(opStackAdd, processOpAdd{
|
||||
nodeid: nodeid,
|
||||
config: wantP.Config,
|
||||
@@ -383,6 +383,10 @@ func synchronize(wish map[string]string, want []store.Process, have []node.Proce
|
||||
err: errNotEnoughResourcesForDeployment,
|
||||
})
|
||||
}
|
||||
|
||||
if opBudget <= 0 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
opStack = append(opStack, opStackDelete...)
|
||||
|
||||
Reference in New Issue
Block a user