Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion isaaclab_arena/evaluation/eval_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ def main():
metrics_logger.append_job_metrics(job.name, metrics)

except Exception as e:
# continue with the next job even if one fails
job_manager.complete_job(job, metrics={}, status=Status.FAILED)
print(f"Job {job.name} failed with error: {e}")
print(f"Traceback: {traceback.format_exc()}")
if not args_cli.continue_on_error:
raise

finally:
# Only stop env if it was successfully created
Expand Down
6 changes: 6 additions & 0 deletions isaaclab_arena/evaluation/eval_runner_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ def add_eval_runner_arguments(parser: argparse.ArgumentParser) -> None:
default="isaaclab_arena_environments/eval_jobs_configs/zero_action_jobs_config.json",
help="Path to the eval jobs config file.",
)
parser.add_argument(
"--continue_on_error",
action="store_true",
default=False,
help="Continue evaluation with remaining jobs when a job fails instead of stopping immediately.",
)