Skip to content
Snippets Groups Projects
Commit 5dc9e45e authored by Moe Jette's avatar Moe Jette
Browse files

Time out prolog on repeated errors from SLURM API calls.

parent 8eeef526
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,8 @@ static int _wait_part_ready(uint32_t job_id) ...@@ -112,7 +112,8 @@ static int _wait_part_ready(uint32_t job_id)
for (i=0; (cur_delay < max_delay); i++) { for (i=0; (cur_delay < max_delay); i++) {
if (i) { if (i) {
sleep(POLL_SLEEP); sleep(POLL_SLEEP);
if(_partitions_dealloc() == 0) rc = _partitions_dealloc();
if ((rc == 0) || (rc == -1))
cur_delay += POLL_SLEEP; cur_delay += POLL_SLEEP;
#if _DEBUG #if _DEBUG
printf("."); printf(".");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment