Skip to content

Commit fc77dbc

Browse files
Tomby68Megan Dahl
authored andcommitted
Ship taskpro/epilog if configless + relative paths
Issue: 50609 Ticket: 23523 Changelog: When configless is enabled, TaskProlog and TaskEpilog scripts can now be pushed to slurmds if the script files are in the same directory as slurm.conf.
1 parent eec8aee commit fc77dbc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/common/fetch_config.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ extern config_response_msg_t *new_config_response(bool to_slurmd)
626626
}
627627

628628
/*
629-
* Load Prolog and Epilog scripts.
629+
* Load Prolog, Epilog, TaskProlog, and TaskEpilog scripts.
630630
* Only load if a non-absolute path is provided, this is our
631631
* indication that the file should be sent out, and matches
632632
* configuration semantics for the Include lines.
@@ -642,6 +642,12 @@ extern config_response_msg_t *new_config_response(bool to_slurmd)
642642
_load_conf2list(msg, slurm_conf.epilog[i],
643643
true);
644644
}
645+
if ((slurm_conf.task_prolog) &&
646+
(slurm_conf.task_prolog[0] != '/'))
647+
_load_conf2list(msg, slurm_conf.task_prolog, true);
648+
if ((slurm_conf.task_epilog) &&
649+
(slurm_conf.task_epilog[0] != '/'))
650+
_load_conf2list(msg, slurm_conf.task_epilog, true);
645651
}
646652

647653
return msg;

0 commit comments

Comments
 (0)