Update cwltool again for bugfix, refs #10088
[arvados.git] / sdk / go / dispatch / dispatch.go
index aa79747564b0975143e851b725ad6f2ab49b58f8..a48613292eba54c594cd4eb8ed9a13cf64011c70 100644 (file)
@@ -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}},