Skip to content

Commit 99919ac

Browse files
committed
configurable wall clock time prompt
1 parent 7b328f3 commit 99919ac

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

froster.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,14 @@ def subcmd_config(args, cfg, aws):
317317
parts = se.get_allowed_partitions_and_qos()
318318
print('')
319319

320-
walltime = cfg.read('hpc', 'slurm_walltime', '7-0')
321-
cfg.write('hpc', 'slurm_walltime', walltime)
322-
if '-' in walltime:
323-
days, hours = walltime.split('-')
320+
slurm_walltime = cfg.read('hpc', 'slurm_walltime', '7-0')
321+
slurm_walltime = cfg.prompt(f'Please confirm or set the Slurm --time (wall time as days-hours) for froster jobs', slurm_walltime)
322+
cfg.write('hpc', 'slurm_walltime', slurm_walltime)
323+
if '-' in slurm_walltime:
324+
days, hours = slurm_walltime.split('-')
324325
else:
325326
days = 0
326-
hours = walltime
327+
hours = slurm_walltime
327328

328329
mydef = cfg.read('hpc', 'slurm_partition')
329330
if mydef: mydef = f' (now: {mydef})'

0 commit comments

Comments
 (0)