projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes PipelineInstancesControllerTest. application_controller#create now does
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
job.rb
diff --git
a/apps/workbench/app/models/job.rb
b/apps/workbench/app/models/job.rb
index eb81f402308edea23528b49e6ac5132a94641bc5..173d3a06964fb5667b9546aee4bab518baf3c190 100644
(file)
--- a/
apps/workbench/app/models/job.rb
+++ b/
apps/workbench/app/models/job.rb
@@
-1,9
+1,17
@@
class Job < ArvadosBase
class Job < ArvadosBase
- def attribute_editable?(attr)
+ def self.goes_in_folders?
+ true
+ end
+
+ def attribute_editable? attr, *args
false
end
def self.creatable?
false
end
false
end
def self.creatable?
false
end
+
+ def cancel
+ arvados_api_client.api "jobs/#{self.uuid}/", "cancel", {}
+ end
end
end