1 class Arvados::V1::ContainersController < ApplicationController
2 accept_attribute_as_json :environment, Hash
3 accept_attribute_as_json :mounts, Hash
4 accept_attribute_as_json :runtime_constraints, Hash
5 accept_attribute_as_json :command, Array
8 if @object.locked_by_uuid != Thread.current[:api_client_authorization].uuid
9 raise ArvadosModel::PermissionDeniedError.new("Not locked by your token")
11 @object = @object.auth
15 # Updates use row locking to resolve races between multiple
16 # dispatchers trying to lock the same container.