Skip to content

feat(runner): allow profiling of template jobs#340

Merged
sjforeman merged 1 commit into
mainfrom
sf/profiler-options
Apr 22, 2026
Merged

feat(runner): allow profiling of template jobs#340
sjforeman merged 1 commit into
mainfrom
sf/profiler-options

Conversation

@sjforeman

Copy link
Copy Markdown
Contributor

This PR is motivated by a bug that @nKrugo13 identified in the refactored pipeline routines: caput-pipeline template-run will throw an error if --submit is not specified and any of the profile, profiler, mpi_abort, or psutil arguments are missing. This happens because _cli.template_run() calls _core.template_run(), which in turn calls _core.run_pipeline(), for which the 4 arguments above are not optional. I believe this bug was introduced in the process of decoupling the command-line interface from run_pipeline(): previously, run_pipeline() was called directly from the command line, and always had default values for these 4 arguments provided.

In the process of fixing this bug, I realized that it would be straightforward to allow profiling of template-run jobs, so I've implemented that here.

@sjforeman sjforeman requested a review from ljgray April 22, 2026 01:19

@ljgray ljgray left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great

@sjforeman sjforeman merged commit 549f6aa into main Apr 22, 2026
11 checks passed
@sjforeman sjforeman deleted the sf/profiler-options branch April 22, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants