14325: Note assumption concurrent dispatchers share a VM size menu.
authorTom Clegg <tclegg@veritasgenetics.com>
Fri, 1 Feb 2019 21:23:07 +0000 (16:23 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Fri, 1 Feb 2019 21:28:14 +0000 (16:28 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

lib/dispatchcloud/container/queue.go

index 464e31186d9ff5ddb8c648f51d1c54bb4c15c759..d49d0166a3fba5ec1eee1c84b5f22b7586588fa9 100644 (file)
@@ -212,6 +212,9 @@ func (cq *Queue) Update() error {
 func (cq *Queue) addEnt(uuid string, ctr arvados.Container) {
        it, err := cq.chooseType(&ctr)
        if err != nil && (ctr.State == arvados.ContainerStateQueued || ctr.State == arvados.ContainerStateLocked) {
+               // We assume here that any chooseType error is a hard
+               // error: it wouldn't help to try again, or to leave
+               // it for a different dispatcher process to attempt.
                errorString := err.Error()
                cq.logger.WithField("ContainerUUID", ctr.UUID).Warn("cancel container with no suitable instance type")
                go func() {