Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make command-line parsing of launch options more robust #30

Open
mkandes opened this issue Mar 9, 2024 · 0 comments
Open

Make command-line parsing of launch options more robust #30

mkandes opened this issue Mar 9, 2024 · 0 comments

Comments

@mkandes
Copy link
Owner

mkandes commented Mar 9, 2024

For example, the --env-modules option will fail when loading multiple modules and place a space in a comma-separated list.

[mkandes@login02 ~]$ export PATH="/cm/shared/apps/sdsc/galyleo:${PATH}"
[mkandes@login02 ~]$ galyleo launch --account use300 --partition shared --cpus 2 --memory 4 --time-limit 00:30:00 --env-modules cpu/0.17.3b, anaconda3/2021.05
ERROR :: Command-line option anaconda3/2021.05 not recognized or not supported.
ERROR :: galyleo_launch command failed.
[mkandes@login02 ~]$ galyleo launch --account use300 --partition shared --cpus 2 --memory 4 --time-limit 00:30:00 --env-modules cpu/0.17.3b,anaconda3/2021.05
Preparing galyleo for launch into Jupyter orbit ...
Listing all launch parameters ...
  command-line options       : values
    -A | --account           : use300
    -R | --reservation       : 
    -p | --partition         : shared
    -q | --qos               : 
    -N | --nodes             : 1
    -c | --cpus              : 2
    -m | --memory            : 4 GB
    -g | --gpus              : 
       | --gres              : 
    -t | --time-limit        : 00:30:00
    -C | --constraint        : 
    -j | --jupyter           : lab
    -d | --notebook-dir      : 
       | --scratch-dir       : "/scratch/${USER}/job_${SLURM_JOB_ID}"
    -e | --env-modules       : cpu/0.17.3b,anaconda3/2021.05
    -s | --sif               : 
    -B | --bind              : 
       | --nv                : 
       | --conda-init        : 
       | --conda-env         : 
       | --conda-yml         : 
       | --conda-version     : latest
       | --mamba             : false
       | --cache             : false
       | --spark-home        : 
       | --disable-checklist : false
       | --checklist-timeout : 10 s
    -Q | --quiet             : 1
Your token is 
hurling-impose-headstand
200
Generating Jupyter launch script ...
Submitted Jupyter launch script to Slurm. Your SLURM_JOB_ID is 29140433.
Success! Token linked to jobid.
Please copy and paste the HTTPS URL provided below into your web browser.
Do not share this URL with others. It is the password to your Jupyter notebook session.
Your Jupyter notebook session will begin once compute resources are allocated to your job by the scheduler.
https://hurling-impose-headstand.expanse-user-content.sdsc.edu?token=7261f043f897ad2253f875f7e

See https://sdsc.zendesk.com/agent/tickets/34202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant