1 class Job < ArvadosBase
2 def self.goes_in_projects?
10 def attribute_editable? attr, *args
11 if attr.to_sym == :description
12 super && attr.to_sym == :description
24 x = "\"#{script}\" job"
29 x += " finished #{finished_at.strftime('%b %-d')}"
31 x += " started #{started_at.strftime('%b %-d')}"
33 x += " submitted #{created_at.strftime('%b %-d')}"
38 arvados_api_client.api "jobs/#{self.uuid}/", "cancel", {}
42 arvados_api_client.api("jobs/", "queue_size", {"_method"=> "GET"})[:queue_size] rescue 0
50 if not job[:cancelled_at].nil?
52 elsif not job[:finished_at].nil? or not job[:success].nil?
65 def textile_attributes