Skip to content
Snippets Groups Projects
Commit be44f2ed authored by Carles Fenoy's avatar Carles Fenoy
Browse files

Added check for preeption mode before changing time limit to 1 if flag no...

Added check for preeption mode before changing time limit to 1 if flag no reserve is enabled, as this can cause a problem with jobs starting on nodes with future reservations.
parent 1e9e79ed
No related branches found
No related tags found
No related merge requests found
...@@ -693,7 +693,7 @@ static int _attempt_backfill(void) ...@@ -693,7 +693,7 @@ static int _attempt_backfill(void)
comp_time_limit = time_limit; comp_time_limit = time_limit;
orig_time_limit = job_ptr->time_limit; orig_time_limit = job_ptr->time_limit;
qos_ptr = job_ptr->qos_ptr; qos_ptr = job_ptr->qos_ptr;
if (qos_ptr && (qos_ptr->flags & QOS_FLAG_NO_RESERVE)) if (qos_ptr && (qos_ptr->flags & QOS_FLAG_NO_RESERVE) && slurm_get_preempt_mode())
time_limit = job_ptr->time_limit = 1; time_limit = job_ptr->time_limit = 1;
else if (job_ptr->time_min && (job_ptr->time_min < time_limit)) else if (job_ptr->time_min && (job_ptr->time_min < time_limit))
time_limit = job_ptr->time_limit = job_ptr->time_min; time_limit = job_ptr->time_limit = job_ptr->time_min;
......
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