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

[👶 PR] Improve Launcher to handle SLURM_TMPDIR #228

Merged
merged 5 commits into from
Oct 6, 2023
Merged

Conversation

vict0rsch
Copy link
Collaborator

@vict0rsch vict0rsch commented Sep 25, 2023

launch.py now handles code_dir: $SLURM_TMPDIR or --code_dir='$SLURM_TMPDIR'

If this is used, the sbatch script will:
1. git clone the repo
2. git checkout whatever value is in git_checkout: or --git_checkout=. If git_checkout is empty, the current branch name is used

💥 Warning: from the command-line, single quotes are mandatory around '$SLURM_TMPDIR' otherwise bash will try to evaluate it instead of giving the raw string to Python

(From #224)

@vict0rsch vict0rsch changed the title Improve Launcher to handle SLURM_TMPDIR [👶 PR] Improve Launcher to handle SLURM_TMPDIR Sep 25, 2023
@alexhernandezgarcia
Copy link
Owner

The 👶 is becoming a 👦 ?

Copy link
Collaborator

@carriepl carriepl left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@carriepl carriepl merged commit bf4938e into main Oct 6, 2023
@carriepl carriepl deleted the launcher-tmpdir branch October 6, 2023 17:17
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.

3 participants