Include run_name in training logs for better run traceability #101
+6
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Previously, during training, the
on_policy_runner
logging output did not display the current run name, making it harder to distinguish logs between different training sessions when multiple runs were launched in succession or in parallel.To improve the training log clarity and traceability, I added support to display the configured
run_name
in the logging output ofrsl_rl/runners/on_policy_runner.py
.If the
run_name
field is specified in the configuration—such as in the Isaac Lab training example:—the run name will now appear in each log update under the label "Run name:":
This enhancement helps users quickly identify the corresponding training session, which is especially useful when monitoring multiple or long-running experiments.
This addition is optional and non-intrusive: if
run_name
is not set, the log display remains unchanged.What’s Changed
run_name
added to training logs inon_policy_runner.py
.run_name
is conditionally fetched fromself.cfg
and formatted neatly using the same padded alignment style as other log fields.run_name
is not defined.Type of Change
Checklist
pre-commit run --all-files
and all pre-commit checks passrun_name
when providedrun_name
is not set)