Add working directory field in options form
This commit is contained in:
parent
0273f449b8
commit
c67e8742c8
8 changed files with 71 additions and 8 deletions
|
@ -11,7 +11,7 @@ from traceback import format_exc
|
|||
from flask import Flask, render_template, request
|
||||
from glicid_spawner.form import TEMPLATES, options_from_form
|
||||
from glicid_spawner.micromamba import MicromambaEnv
|
||||
from glicid_spawner.resources import CPU, MEMORY, gpu_max_duration
|
||||
from glicid_spawner.resources import CPU, MEMORY, get_folders, gpu_max_duration
|
||||
from glicid_spawner.slurm import gres, sinfo_from_file
|
||||
from livereload import Server
|
||||
|
||||
|
@ -22,6 +22,7 @@ ENVS = [
|
|||
MicromambaEnv('USER', 'bar', f'/{USERNAME}/envs/bar'),
|
||||
MicromambaEnv('GLOBAL', 'baz', '/global/envs/baz'),
|
||||
]
|
||||
FOLDERS = get_folders(USERNAME)
|
||||
|
||||
# Dummy SLURM config
|
||||
DATA = Path(__file__).parent / '..' / 'tests' / 'data'
|
||||
|
@ -38,6 +39,7 @@ GPU_MULTI_CLUSTER = gpu_max_duration(gres(SLURM_MULTI_CLUSTER))
|
|||
# Format dummy options
|
||||
OPTIONS = {
|
||||
'username': USERNAME,
|
||||
'folders': FOLDERS,
|
||||
'envs': ENVS,
|
||||
'cpus': CPU,
|
||||
'mems': MEMORY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue