1 class Job < ArvadosBase
2 def self.goes_in_projects?
10 def editable_attributes
20 x = "\"#{script}\" job"
25 x += " finished #{finished_at.strftime('%b %-d')}"
27 x += " started #{started_at.strftime('%b %-d')}"
29 x += " submitted #{created_at.strftime('%b %-d')}"
34 arvados_api_client.api "jobs/#{self.uuid}/", "cancel", {}
38 arvados_api_client.api("jobs/", "queue_size", {"_method"=> "GET"})[:queue_size] rescue 0
42 arvados_api_client.unpack_api_response arvados_api_client.api("jobs/", "queue", {"_method"=> "GET"})
45 def textile_attributes