Skip to content

Commit

Permalink
add TaskPlugin to default parameters
Browse files Browse the repository at this point in the history
These changes address #16 by adding sane defaults for the
TaskPlugin configuration parameter as specified in the
[slurm configuration](https://slurm.schedmd.com/slurm.conf.html#OPT_TaskPlugin).
  • Loading branch information
jamesbeedy authored and NucciTheBoss committed Aug 20, 2024
1 parent 850c44a commit a6a13db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charms/slurmctld/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def _assemble_slurmctld_parameters() -> str:
"SlurmctldHost": self.hostname,
"SlurmctldParameters": _assemble_slurmctld_parameters(),
"ProctrackType": "proctrack/linuxproc" if is_container() else "proctrack/cgroup",
"TaskPlugin": "task/affinity" if is_container() else "task/cgroup,task/affinity",
**accounting_params,
**CHARM_MAINTAINED_SLURM_CONF_PARAMETERS,
**slurmd_parameters,
Expand Down

0 comments on commit a6a13db

Please sign in to comment.