camall3n / onager

Lightweight python library for launching experiments and tuning hyperparameters, either locally or on a cluster
MIT License
20 stars 4 forks source link

Cancel produces no output and does not cancel jobs on slurm #17

Closed camall3n closed 4 years ago

camall3n commented 4 years ago

To reproduce:

onager launch --backend slurm --jobname sleepy --command "sleep 60"
onager cancel --backend slurm --jobid `myq | grep sleepy | cut -c 1-8` --tasklist 1
myq

Output

Running:
ID          NAME    PART.  QOS       CPU  WALLTIME  REMAIN  NODES
13438765_1  sleepy  batch  pri-csal  1    1:00:00   59:55   node1327
camall3n commented 4 years ago

Fixed by 2e4b67b