1 class ProxyWorkUnit < WorkUnit
6 attr_accessor :unreadable_children
8 def initialize proxied, label
10 self.proxied = proxied
21 def modified_by_user_uuid
22 get(:modified_by_user_uuid)
27 t = Time.parse(t) if (t.andand.class == String)
33 t = Time.parse(t) if (t.andand.class == String)
39 t = Time.parse(t) if (t.andand.class == String)
45 if ["Running", "RunningOnServer", "RunningOnClient"].include? state
52 def state_bootstrap_class
57 when 'Failed', 'Cancelled'
59 when 'Running', 'RunningOnServer', 'RunningOnClient'
68 if state == 'Complete'
70 elsif state == 'Failed'
78 get(:script_parameters)
93 def supplied_script_version
94 get(:supplied_script_version)
97 def runtime_constraints
98 get(:runtime_constraints)
109 def has_unreadable_children
110 self.unreadable_children
114 resource_class = ArvadosBase::resource_class_for_uuid(uuid)
115 resource_class.where(uuid: [uuid]).first rescue nil
121 if self.proxied.respond_to? key
122 self.proxied.send(key)
123 elsif self.proxied.is_a?(Hash)