Skip to content

Commit a06cf7f

Browse files
authored
Merge pull request #137 from stackhpc/fix/136
Fix openhpc_job_maxtime to match actual result in running Slurm
2 parents 7d77a1c + 8ed0623 commit a06cf7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ package in the image.
5050
* `ram_mb`: Optional. The physical RAM available in each server of this group ([slurm.conf](https://slurm.schedmd.com/slurm.conf.html) parameter `RealMemory`) in MiB. This is set using ansible facts if not defined, equivalent to `free --mebi` total * `openhpc_ram_multiplier`.
5151
* `ram_multiplier`: Optional. An override for the top-level definition `openhpc_ram_multiplier`. Has no effect if `ram_mb` is set.
5252
* `default`: Optional. A boolean flag for whether this partion is the default. Valid settings are `YES` and `NO`.
53-
* `maxtime`: Optional. A partition-specific time limit in hours, minutes and seconds ([slurm.conf](https://slurm.schedmd.com/slurm.conf.html) parameter `MaxTime`). The default value is
54-
given by `openhpc_job_maxtime`.
53+
* `maxtime`: Optional. A partition-specific time limit following the format of [slurm.conf](https://slurm.schedmd.com/slurm.conf.html) parameter `MaxTime`. The default value is
54+
given by `openhpc_job_maxtime`. The value should be quoted to avoid Ansible conversions.
5555
* `partition_params`: Optional. Mapping of additional parameters and values for [partition configuration](https://slurm.schedmd.com/slurm.conf.html#SECTION_PARTITION-CONFIGURATION).
5656

5757
For each group (if used) or partition any nodes in an ansible inventory group `<cluster_name>_<group_name>` will be added to the group/partition. Note that:
@@ -60,7 +60,7 @@ For each group (if used) or partition any nodes in an ansible inventory group `<
6060
- An inventory group may be empty or missing, but if it is not then the play must contain at least one node from it (used to set processor information).
6161
- Nodes may not appear in more than one group.
6262

63-
`openhpc_job_maxtime`: A maximum time job limit in hours, minutes and seconds. The default is `24:00:00`.
63+
`openhpc_job_maxtime`: Maximum job time limit, default `'60-0'` (60 days). See [slurm.conf](https://slurm.schedmd.com/slurm.conf.html) parameter `MaxTime` for format. The default is 60 days. The value should be quoted to avoid Ansible conversions.
6464

6565
`openhpc_cluster_name`: name of the cluster
6666

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ openhpc_packages:
1010
openhpc_drain_timeout: 86400
1111
openhpc_resume_timeout: 300
1212
openhpc_retry_delay: 10
13-
openhpc_job_maxtime: 24:00:00
13+
openhpc_job_maxtime: '60-0' # quote this to avoid ansible converting some formats to seconds, which is interpreted as minutes by Slurm
1414
openhpc_config: "{{ openhpc_extra_config | default({}) }}"
1515
openhpc_slurm_configless: "{{ 'enable_configless' in openhpc_config.get('SlurmctldParameters', []) }}"
1616

0 commit comments

Comments
 (0)