Option for keeping temporary files for debugging?
I tried to set up automatic allocation using `hq alloc add ...` but was having some issues because the generated sbatch-file was apparently not in line with some cluster policy. To debug this, I wanted to inspect the generated `hq-submit.sh` file. However:
* the documented path, `<hq-server-dir>/hq-current/autoalloc/<queue-id>/<allocation-num>/`, was not created, and
* Setting `RUST_LOG=hyperqueue::server::autoalloc=debug`, I found out that `sbatch` is called with file `$TMPDIR/hqXXX/autoalloc/..../hq-submit.sh`. However, this directory is deleted right away when the `hq alloc add` fails.
Is there a way to inspect the generated `hq-submit.sh` file when `hq alloc add` / `hq alloc dry-run` fails, e.g. by preventing the temp-dir from being deleted? Or does the absence of ``<hq-server-dir>/hq-current/autoalloc/` indicate that I misconfigured something?
0 条评论