@@ -688,7 +688,7 @@ fn draw_results_table(f: &mut Frame, area: Rect, app: &mut App) {
688688 . add_modifier ( Modifier :: BOLD ) ;
689689
690690 let header = Row :: new ( vec ! [
691- "ID" , "Job ID" , "Run" , "Return" , "Status" , "Peak Mem" , "Peak CPU" ,
691+ "ID" , "Job ID" , "Run" , "Attempt" , " Return", "Status" , "Peak Mem" , "Peak CPU" ,
692692 ] )
693693 . style ( header_style)
694694 . bottom_margin ( 1 ) ;
@@ -697,6 +697,7 @@ fn draw_results_table(f: &mut Frame, area: Rect, app: &mut App) {
697697 let id = result. id . map ( |i| i. to_string ( ) ) . unwrap_or_default ( ) ;
698698 let job_id = result. job_id . to_string ( ) ;
699699 let run_id = result. run_id . to_string ( ) ;
700+ let attempt_id = result. attempt_id . unwrap_or ( 1 ) . to_string ( ) ;
700701 let return_code = result. return_code ;
701702 let status = format ! ( "{:?}" , result. status) ;
702703
@@ -723,6 +724,7 @@ fn draw_results_table(f: &mut Frame, area: Rect, app: &mut App) {
723724 Cell :: from( id) ,
724725 Cell :: from( job_id) ,
725726 Cell :: from( run_id) ,
727+ Cell :: from( attempt_id) ,
726728 Cell :: from( Span :: styled(
727729 return_code. to_string( ) ,
728730 Style :: default ( ) . fg( row_color) ,
@@ -757,6 +759,7 @@ fn draw_results_table(f: &mut Frame, area: Rect, app: &mut App) {
757759 Constraint :: Length ( 6 ) , // ID
758760 Constraint :: Length ( 8 ) , // Job ID
759761 Constraint :: Length ( 5 ) , // Run
762+ Constraint :: Length ( 7 ) , // Attempt
760763 Constraint :: Length ( 7 ) , // Return
761764 Constraint :: Length ( 12 ) , // Status
762765 Constraint :: Length ( 10 ) , // Peak Mem
0 commit comments