Skip to content
Snippets Groups Projects
Commit 36cb2bbb authored by Dominik Bartkiewicz's avatar Dominik Bartkiewicz Committed by Danny Auble
Browse files

Make backfill scheduler behave like regular scheduler in respect to

'assoc_limit_stop'.
parent 0a7d222f
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,7 @@ static int max_backfill_job_per_part = 0;
static int max_backfill_job_per_user = 0;
static int max_backfill_jobs_start = 0;
static bool backfill_continue = false;
static bool assoc_limit_stop = false;
static int defer_rpc_cnt = 0;
static int sched_timeout = SCHED_TIMEOUT;
static int yield_sleep = YIELD_SLEEP;
......@@ -639,6 +640,13 @@ static void _load_config(void)
backfill_continue = false;
}
if (sched_params && (strstr(sched_params, "assoc_limit_stop"))) {
assoc_limit_stop = true;
} else {
assoc_limit_stop = false;
}
if (sched_params &&
(tmp_ptr = strstr(sched_params, "bf_yield_interval="))) {
sched_timeout = atoi(tmp_ptr + 18);
......@@ -1127,7 +1135,8 @@ static int _attempt_backfill(void)
}
if (!acct_policy_job_runnable_state(job_ptr) &&
!acct_policy_job_runnable_pre_select(job_ptr))
(!assoc_limit_stop ||
!acct_policy_job_runnable_pre_select(job_ptr)))
continue;
job_no_reserve = 0;
......
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