Skip to content

Commit 146e951

Browse files
elelayshsjpb
andauthored
Open OnDemand: Add dropdown to select select partition (#869)
* ood: use auto_queues instead of bc_queue in batch_connect, to let the user select the slurm partition from a drop-down list. * ood: desktop and jupyter: fix missing partition --------- Co-authored-by: Steve Brasier <[email protected]>
1 parent d593b0b commit 146e951

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

environments/common/inventory/group_vars/all/openondemand.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ openondemand_apps_desktop_default:
120120
cluster: slurm
121121
form:
122122
- desktop
123-
- bc_queue
123+
- auto_queues
124124
- bc_num_hours
125125
- num_cores
126126
- gres
127127
- gres_count
128128
- node
129129
attributes:
130130
desktop: xfce
131-
bc_queue:
131+
auto_queues:
132132
value: "{{ openondemand_desktop_partition | default(none) }}"
133133
num_cores:
134134
label: Number of cores
@@ -156,6 +156,8 @@ openondemand_apps_desktop_default:
156156
script:
157157
job_name: "ood-desktop"
158158
native:
159+
- "--partition"
160+
- "<%= auto_queues %>"
159161
- <%= "--nodes=1" %>
160162
- <%= "--ntasks=#{num_cores}" %>
161163
<% if node != '' %>
@@ -175,7 +177,7 @@ openondemand_apps_jupyter_default:
175177
form:
176178
- modules
177179
- extra_jupyter_args
178-
- bc_queue
180+
- auto_queues
179181
- bc_num_hours
180182
- num_cores
181183
- gres
@@ -205,7 +207,7 @@ openondemand_apps_jupyter_default:
205207
help: Select a particular node or leave empty to let Slurm pick the next available
206208
value: ""
207209
extra_jupyter_args: ""
208-
bc_queue:
210+
auto_queues:
209211
value: "{{ openondemand_jupyter_partition | default(none) }}"
210212
submit: |
211213
---
@@ -218,6 +220,8 @@ openondemand_apps_jupyter_default:
218220
script:
219221
job_name: "ood-jupyter"
220222
native:
223+
- "--partition"
224+
- "<%= auto_queues %>"
221225
- <%= "--nodes=1" %>
222226
- <%= "--ntasks=#{num_cores}" %>
223227
<% if node != '' %>
@@ -233,7 +237,7 @@ openondemand_apps_rstudio_default:
233237
description: Request a RStudio server
234238
cluster: slurm
235239
attributes:
236-
bc_queue:
240+
auto_queues:
237241
value: "{{ openondemand_rstudio_partition | default(none) }}"
238242
rstudio_module:
239243
label: RStudio module
@@ -292,9 +296,8 @@ openondemand_apps_rstudio_default:
292296
min: 1
293297
step: 1
294298
form:
295-
- bc_queue
296-
- rstudio_module
297299
- auto_queues
300+
- rstudio_module
298301
- extra_modules_script
299302
- cores
300303
- ram
@@ -312,7 +315,7 @@ openondemand_apps_rstudio_default:
312315
script:
313316
native:
314317
- "--partition"
315-
- "<%= bc_queue %>"
318+
- "<%= auto_queues %>"
316319
- "--ntasks"
317320
- "1"
318321
- "--mem"
@@ -332,7 +335,7 @@ openondemand_apps_matlab_default:
332335
cluster: slurm
333336
form:
334337
- desktop
335-
- bc_queue
338+
- auto_queues
336339
- bc_num_hours
337340
- matlab_module
338341
- cores
@@ -343,7 +346,7 @@ openondemand_apps_matlab_default:
343346
desktop: xfce
344347
# bc_account: # i.e. slurm account
345348
# value: root
346-
bc_queue:
349+
auto_queues:
347350
value: "{{ openondemand_matlab_partition | default(none) }}"
348351
matlab_module:
349352
label: MATLAB module
@@ -399,7 +402,7 @@ openondemand_apps_matlab_default:
399402
job_name: "ood-matlab"
400403
native:
401404
- "--partition"
402-
- "<%= bc_queue %>"
405+
- "<%= auto_queues %>"
403406
- "--ntasks"
404407
- "1"
405408
- "--mem"
@@ -416,7 +419,7 @@ openondemand_apps_codeserver_default:
416419
description: Request a Code Server
417420
cluster: slurm
418421
form:
419-
- bc_queue
422+
- auto_queues
420423
- bc_num_hours
421424
- codeserver_module
422425
- cores
@@ -430,7 +433,7 @@ openondemand_apps_codeserver_default:
430433
widget: select
431434
options:
432435
- ["Code Server v{{ openondemand_code_server_version}}", "code-server/{{ openondemand_code_server_version }}"]
433-
bc_queue:
436+
auto_queues:
434437
value: "{{ openondemand_codeserver_partition | default(none) }}"
435438
cores:
436439
label: Number of CPU cores
@@ -467,7 +470,7 @@ openondemand_apps_codeserver_default:
467470
job_name: "ood-codeserver"
468471
native:
469472
- "--partition"
470-
- "<%= bc_queue %>"
473+
- "<%= auto_queues %>"
471474
- "--ntasks"
472475
- "1"
473476
- "--mem"

0 commit comments

Comments
 (0)