projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4036: when files in a collection are combined, create the new collection in the origi...
[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 9e9c0967871ba4e6408a79c1855b87460f156694..977eef91bf278ac5e9a528e935262dce478e4fa5 100644
(file)
--- a/
apps/workbench/app/models/job.rb
+++ b/
apps/workbench/app/models/job.rb
@@
-38,6
+38,14
@@
class Job < ArvadosBase
arvados_api_client.api "jobs/#{self.uuid}/", "cancel", {}
end
arvados_api_client.api "jobs/#{self.uuid}/", "cancel", {}
end
+ def self.queue_size
+ arvados_api_client.api("jobs/", "queue_size", {"_method"=> "GET"})[:queue_size] rescue 0
+ end
+
+ def self.queue
+ arvados_api_client.unpack_api_response arvados_api_client.api("jobs/", "queue", {"_method"=> "GET"})
+ end
+
def textile_attributes
[ 'description' ]
end
def textile_attributes
[ 'description' ]
end