+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class Arvados::V1::JobsController < ApplicationController
accept_attribute_as_json :components, Hash
accept_attribute_as_json :script_parameters, Hash
def cancel
reload_object_before_update
- @object.update_attributes! state: Job::Cancelled
+ @object.cancel cascade: params[:cascade]
show
end