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
c9b9fc79
Commit
c9b9fc79
authored
14 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
better simulation
parent
075beab6
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/select/bluegene/plugin/bg_job_run.c
+7
-1
7 additions, 1 deletion
src/plugins/select/bluegene/plugin/bg_job_run.c
with
7 additions
and
1 deletion
src/plugins/select/bluegene/plugin/bg_job_run.c
+
7
−
1
View file @
c9b9fc79
...
@@ -406,7 +406,8 @@ static void _remove_jobs_on_block_and_reset(rm_job_list_t *job_list,
...
@@ -406,7 +406,8 @@ static void _remove_jobs_on_block_and_reset(rm_job_list_t *job_list,
#else
#else
/* Simpulate better job completion since on a real system it
/* Simpulate better job completion since on a real system it
* could take up minutes to kill a job. */
* could take up minutes to kill a job. */
sleep
(
2
);
if
(
jobs
)
sleep
(
2
);
#endif
#endif
/* remove the block's users */
/* remove the block's users */
slurm_mutex_lock
(
&
block_state_mutex
);
slurm_mutex_lock
(
&
block_state_mutex
);
...
@@ -482,6 +483,11 @@ static void _reset_block_list(List block_list)
...
@@ -482,6 +483,11 @@ static void _reset_block_list(List block_list)
while
((
bg_record
=
list_next
(
itr
)))
{
while
((
bg_record
=
list_next
(
itr
)))
{
info
(
"Queue clearing of users of BG block %s"
,
info
(
"Queue clearing of users of BG block %s"
,
bg_record
->
bg_block_id
);
bg_record
->
bg_block_id
);
#ifdef HAVE_BG_FILES
/* simulate jobs running and need to be cleared from MMCS */
if
(
bg_record
->
job_ptr
)
jobs
=
1
;
#endif
_remove_jobs_on_block_and_reset
(
job_list
,
jobs
,
_remove_jobs_on_block_and_reset
(
job_list
,
jobs
,
bg_record
->
bg_block_id
);
bg_record
->
bg_block_id
);
}
}
...
...
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