Prepend container launcher script to pbs command, if it exists#607
Merged
jo-basevi merged 3 commits intopayu-org:masterfrom Jul 21, 2025
Merged
Conversation
aidanheerdegen
previously approved these changes
Jul 21, 2025
Collaborator
aidanheerdegen
left a comment
There was a problem hiding this comment.
LGTM. Thanks.
I think you'd said you might add a test, but I'll leave that up to your discretion.
Closed
aidanheerdegen
approved these changes
Jul 21, 2025
Collaborator
aidanheerdegen
left a comment
There was a problem hiding this comment.
Awesome. Thanks!
minghangli-uni
pushed a commit
to ACCESS-NRI/payu
that referenced
this pull request
Aug 7, 2025
…org#607) This is support singularity containers that set `ENV_LAUNCHER_SCRIPT_PATH` environment variable in a script that starts a container and then runs the command arguments inside the container.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related to ACCESS-NRI/model-release-condaenv#17 which requires running payu from an environment within a singularity container.
This allows a custom launcher script to run at the start of the PBS job which launches a singularity container with a SquashFS overlay for the environment, and then runs the python and payu executable within that environment.
Could use a shorter or other name than
ENV_LAUNCHER_SCRIPT_PATH? Now would be the time to change it if so..I've manually tested that this does not add
ENV_LAUNCHER_SCRIPT_PATHif it isn't set in the environment, and if it is, it then works with an launcher script implementation in the ACCESS-NRI/model-release-condaenv#19 PR.Note: qsub call looks like
qsub <qsub_flags> -- /path/to/env-launcher-scripts/bin/launcher.sh /path/to/envs/payu/bin/python3.10 /path/to/envs/payu/bin/payu-runwhere/path/to/envs/payu/bindirectory is only accessible when running within the singularity container.