giovtorres / docker-centos7-slurm

Slurm Docker Container on CentOS 7
MIT License
87 stars 57 forks source link

jobs in debug partition run indefinitely #43

Open percyfal opened 2 years ago

percyfal commented 2 years ago

Hi,

this probably relates back to #38 which addressed issue #37. The partitions are up, but if you submit the example job to the debug partition, it runs indefinitely, e.g:

docker exec dockercentos7slurm_slurm_1 sbatch --wrap="sleep 10" --partition debug

I added the following to tests/test_slurm.py:test_job_can_run:

time.sleep(2)
res = host.run(f'sacct -o State --parsable --noheader -j {jobid}')
assert "COMPLETE" in res.stdout

to verify that jobs complete; see github action output on my fork. Unfortunately I have no immediate solution but I thought I'd let you know. I make use of the debug partition in a CI test so I will see if I can find a fix.

Cheers,

Per