We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91bcf64 commit 2e6d78bCopy full SHA for 2e6d78b
src/seml/templates/slurm/slurm_template.sh
@@ -49,7 +49,8 @@ for i in $(seq 1 {experiments_per_job}); do
49
50
# Create directory for the source files in MongoDB
51
if {with_sources}; then
52
- tmpdir="{tmp_directory}/$(uuidgen)" # unique temp dir based on UUID
+ tmpdir=$(mktemp -d -p "{tmp_directory}" seml_sources.XXXXXXXX) || {{
53
+ (>&2 echo "ERROR: Could not create temporary directory for source files under {tmp_directory}."); exit 1; }}
54
# Prepend the temp dir and potential src paths to $PYTHONPATH so it will be used by python.
55
# https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
56
exp_pypath="$tmpdir:$tmpdir/src:$PYTHONPATH"
0 commit comments