Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
36cb2bbb
Commit
36cb2bbb
authored
8 years ago
by
Dominik Bartkiewicz
Committed by
Danny Auble
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/sched/backfill/backfill.c
+10
-1
10 additions, 1 deletion
src/plugins/sched/backfill/backfill.c
with
10 additions
and
1 deletion
src/plugins/sched/backfill/backfill.c
+
10
−
1
View file @
36cb2bbb
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment