Skip to content

Commit b8f7d74

Browse files
committed
Use setsid resume.py to reduce reconfigure time
Using setsid instead of disown unlinks the resume.py process from the parent (slurmctld) process, allowing scontrol reconfigure to continue prior to the resume.py process exiting.
1 parent 61aec72 commit b8f7d74

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • community/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts

community/modules/scheduler/schedmd-slurm-gcp-v6-controller/modules/slurm_files/scripts/resume_wrapper.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ if [ -n "${SLURM_RESUME_FILE-}" ] && [ -f "$SLURM_RESUME_FILE" ]; then
3535
fi
3636

3737
SLURM_RESUME_FILE="${UNIQUE_RESUME_FILE}"
38-
"${PYTHON_SCRIPT}" "${ALL_ARGS[@]}" &
39-
disown
38+
setsid "${PYTHON_SCRIPT}" "${ALL_ARGS[@]}" &
4039

4140
exit 0

0 commit comments

Comments
 (0)