Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --min-nodes to scr_should_exit command #581

Merged
merged 2 commits into from
Nov 7, 2023
Merged

add --min-nodes to scr_should_exit command #581

merged 2 commits into from
Nov 7, 2023

Conversation

adammoody
Copy link
Contributor

This adds a --min-nodes option to the scr_should_exit command, which enables a user to specify the required number of nodes to continue running in an allocation in which they may have spare nodes. By default, the command refers to $SCR_MIN_NODES if set. Otherwise, it tries to read the .scr/nodes.scr file to use the number of nodes from the previous run. Finally, it assumes all nodes in the allocation are required. This new option overrides those other mechanisms.

This adds a --runs option to the scr_should_exit command. This is a temporary option, which simplifies the example job scripts. Ultimately, it would be nice to update the SCR library to support this logic instead. For example, SCR could read the halt file during SCR_Init and update any "runs remaining" value, similar to how it decrements the checkpoints remaining value. At that point, this temporary option could be dropped.

@adammoody adammoody merged commit ac7ade2 into develop Nov 7, 2023
@adammoody adammoody deleted the minnodes branch November 7, 2023 06:45
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.

1 participant