There's no failed job in this case, because there's no job, but
a-r-p-i does set components_summary.failed > 0.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
end
def state_label
- # Show "Cancelled" instead of "Failed" if there are no failed
- # components. #12840
if get(:state) != "Failed"
return super
end
+ if get(:components_summary).andand[:failed].andand > 0
+ return super
+ end
+ # Show "Cancelled" instead of "Failed" if there are no failed
+ # components. #12840
get(:components).each do |_, c|
jstate = c[:job][:state] rescue nil
if jstate == "Failed"