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
fc2cc171
Commit
fc2cc171
authored
10 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add function that purges step list
No checking or other operations are performed on this list, just a purge.
parent
2f399247
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/slurmctld/slurmctld.h
+6
-0
6 additions, 0 deletions
src/slurmctld/slurmctld.h
src/slurmctld/step_mgr.c
+21
-0
21 additions, 0 deletions
src/slurmctld/step_mgr.c
with
27 additions
and
0 deletions
src/slurmctld/slurmctld.h
+
6
−
0
View file @
fc2cc171
...
@@ -1928,6 +1928,12 @@ extern slurm_step_layout_t *step_layout_create(struct step_record *step_ptr,
...
@@ -1928,6 +1928,12 @@ extern slurm_step_layout_t *step_layout_create(struct step_record *step_ptr,
uint16_t
task_dist
,
uint16_t
task_dist
,
uint16_t
plane_size
);
uint16_t
plane_size
);
/*
* step_list_purge - Simple purge of a job's step list records.
* IN job_ptr - pointer to job table entry to have step records removed
*/
extern
void
step_list_purge
(
struct
job_record
*
job_ptr
);
/* start_power_mgr - Start power management thread as needed. The thread
/* start_power_mgr - Start power management thread as needed. The thread
* terminates automatically at slurmctld shutdown time.
* terminates automatically at slurmctld shutdown time.
* IN thread_id - pointer to thread ID of the started pthread.
* IN thread_id - pointer to thread ID of the started pthread.
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/step_mgr.c
+
21
−
0
View file @
fc2cc171
...
@@ -282,7 +282,28 @@ extern void delete_step_records (struct job_record *job_ptr)
...
@@ -282,7 +282,28 @@ extern void delete_step_records (struct job_record *job_ptr)
_free_step_rec
(
step_ptr
);
_free_step_rec
(
step_ptr
);
}
}
list_iterator_destroy
(
step_iterator
);
list_iterator_destroy
(
step_iterator
);
}
/*
* step_list_purge - Simple purge of a job's step list records.
* IN job_ptr - pointer to job table entry to have step records removed
*/
extern
void
step_list_purge
(
struct
job_record
*
job_ptr
)
{
ListIterator
step_iterator
;
struct
step_record
*
step_ptr
;
xassert
(
job_ptr
);
if
(
job_ptr
->
step_list
==
NULL
)
return
;
step_iterator
=
list_iterator_create
(
job_ptr
->
step_list
);
while
((
step_ptr
=
(
struct
step_record
*
)
list_next
(
step_iterator
)))
{
list_remove
(
step_iterator
);
_free_step_rec
(
step_ptr
);
}
list_iterator_destroy
(
step_iterator
);
list_destroy
(
job_ptr
->
step_list
);
}
}
/* _free_step_rec - delete a step record's data structures */
/* _free_step_rec - delete a step record's data structures */
...
...
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