File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
isaaclab_arena/evaluation Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,11 @@ def main():
158158 metrics_logger .append_job_metrics (job .name , metrics )
159159
160160 except Exception as e :
161- # continue with the next job even if one fails
162161 job_manager .complete_job (job , metrics = {}, status = Status .FAILED )
163162 print (f"Job { job .name } failed with error: { e } " )
164163 print (f"Traceback: { traceback .format_exc ()} " )
164+ if not args_cli .continue_on_error :
165+ raise
165166
166167 finally :
167168 # Only stop env if it was successfully created
Original file line number Diff line number Diff line change @@ -21,3 +21,9 @@ def add_eval_runner_arguments(parser: argparse.ArgumentParser) -> None:
2121 default = "/eval/videos" ,
2222 help = "Root directory for recorded videos. Each job gets a subdirectory." ,
2323 )
24+ parser .add_argument (
25+ "--continue_on_error" ,
26+ action = "store_true" ,
27+ default = False ,
28+ help = "Continue evaluation with remaining jobs when a job fails instead of stopping immediately." ,
29+ )
You can’t perform that action at this time.
0 commit comments