X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cc13854bd4675d9f1de807c38dfada0315bf3291..0e7915c354852dc63c989b9e5454a11037f3b65f:/sdk/go/dispatch/dispatch.go diff --git a/sdk/go/dispatch/dispatch.go b/sdk/go/dispatch/dispatch.go index aa79747564..a48613292e 100644 --- a/sdk/go/dispatch/dispatch.go +++ b/sdk/go/dispatch/dispatch.go @@ -193,13 +193,6 @@ func (dispatcher *Dispatcher) handleUpdate(container arvados.Container) { // UpdateState makes an API call to change the state of a container. func (dispatcher *Dispatcher) UpdateState(uuid string, newState arvados.ContainerState) error { - if newState == Locked { - return dispatcher.Lock(uuid) - } else if newState == Queued { - return dispatcher.Unlock(uuid) - } - - // All other states err := dispatcher.Arv.Update("containers", uuid, arvadosclient.Dict{ "container": arvadosclient.Dict{"state": newState}},