@@ -25,6 +25,7 @@ impl ExperimentData {
2525 Status :: Queued => ( "" , "Queued" , true ) ,
2626 Status :: Running => ( "orange" , "Running" , true ) ,
2727 Status :: NeedsReport => ( "orange" , "Needs report" , false ) ,
28+ Status :: Failed => ( "red" , "Failed" , false ) ,
2829 Status :: GeneratingReport => ( "orange" , "Generating report" , false ) ,
2930 Status :: ReportFailed => ( "red" , "Report failed" , false ) ,
3031 Status :: Completed => ( "green" , "Completed" , false ) ,
@@ -62,6 +63,7 @@ pub fn endpoint_queue(data: Arc<Data>) -> Fallible<Response<Body>> {
6263 let mut queued = Vec :: new ( ) ;
6364 let mut running = Vec :: new ( ) ;
6465 let mut needs_report = Vec :: new ( ) ;
66+ let mut failed = Vec :: new ( ) ;
6567 let mut generating_report = Vec :: new ( ) ;
6668 let mut report_failed = Vec :: new ( ) ;
6769
@@ -77,6 +79,7 @@ pub fn endpoint_queue(data: Arc<Data>) -> Fallible<Response<Body>> {
7779 Status :: Queued => queued. push ( ex) ,
7880 Status :: Running => running. push ( ex) ,
7981 Status :: NeedsReport => needs_report. push ( ex) ,
82+ Status :: Failed => failed. push ( ex) ,
8083 Status :: GeneratingReport => generating_report. push ( ex) ,
8184 Status :: ReportFailed => report_failed. push ( ex) ,
8285 Status :: Completed => unreachable ! ( ) ,
@@ -87,6 +90,7 @@ pub fn endpoint_queue(data: Arc<Data>) -> Fallible<Response<Body>> {
8790 experiments. append ( & mut report_failed) ;
8891 experiments. append ( & mut generating_report) ;
8992 experiments. append ( & mut needs_report) ;
93+ experiments. append ( & mut failed) ;
9094 experiments. append ( & mut running) ;
9195 experiments. append ( & mut queued) ;
9296
0 commit comments