@@ -154,8 +154,7 @@ def get_runs_table(
154154 table .add_column ("BACKEND" , style = "grey58" , ratio = 2 )
155155 table .add_column ("RESOURCES" , ratio = 3 if not verbose else 2 )
156156 if verbose :
157- table .add_column ("INSTANCE" , no_wrap = True , ratio = 1 )
158- table .add_column ("RESERVATION" , no_wrap = True , ratio = 1 )
157+ table .add_column ("INSTANCE TYPE" , no_wrap = True , ratio = 1 )
159158 table .add_column ("PRICE" , style = "grey58" , ratio = 1 )
160159 table .add_column ("STATUS" , no_wrap = True , ratio = 1 )
161160 table .add_column ("SUBMITTED" , style = "grey58" , no_wrap = True , ratio = 1 )
@@ -190,18 +189,19 @@ def get_runs_table(
190189 jpd = latest_job_submission .job_provisioning_data
191190 if jpd is not None :
192191 resources = jpd .instance_type .resources
193- instance = jpd .instance_type .name
192+ instance_type = jpd .instance_type .name
194193 jrd = latest_job_submission .job_runtime_data
195194 if jrd is not None and jrd .offer is not None :
196195 resources = jrd .offer .instance .resources
197196 if jrd .offer .total_blocks > 1 :
198- instance += f" ({ jrd .offer .blocks } /{ jrd .offer .total_blocks } )"
197+ instance_type += f" ({ jrd .offer .blocks } /{ jrd .offer .total_blocks } )"
198+ if jpd .reservation :
199+ instance_type += f" ({ jpd .reservation } )"
199200 job_row .update (
200201 {
201202 "BACKEND" : f"{ jpd .backend .value .replace ('remote' , 'ssh' )} ({ jpd .region } )" ,
202203 "RESOURCES" : resources .pretty_format (include_spot = True ),
203- "INSTANCE" : instance ,
204- "RESERVATION" : jpd .reservation ,
204+ "INSTANCE TYPE" : instance_type ,
205205 "PRICE" : f"${ jpd .price :.4f} " .rstrip ("0" ).rstrip ("." ),
206206 }
207207 )
0 commit comments