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
126dede7
Commit
126dede7
authored
2 years ago
by
Tim Wickberg
Browse files
Options
Downloads
Patches
Plain Diff
Add support to sacctmgr to modify the SystemComment field for a job.
parent
f69ede66
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS
+1
-1
1 addition, 1 deletion
NEWS
doc/man/man1/sacctmgr.1
+11
-5
11 additions, 5 deletions
doc/man/man1/sacctmgr.1
src/sacctmgr/job_functions.c
+6
-0
6 additions, 0 deletions
src/sacctmgr/job_functions.c
with
18 additions
and
6 deletions
NEWS
+
1
−
1
View file @
126dede7
...
...
@@ -179,7 +179,7 @@ documents those changes that are of interest to users and administrators.
-- Add support to ship Include configuration files with configless.
-- Fix issues with track_script cleanup.
-- Add new max_token_lifespan limit to AuthAltParameters.
-- sacctmgr - allow Admins to update AdminComment
field on a job
.
-- sacctmgr - allow Admins to update AdminComment
and SystemComment fields
.
* Changes in Slurm 21.08.7
==========================
...
...
This diff is collapsed.
Click to expand it.
doc/man/man1/sacctmgr.1
+
11
−
5
View file @
126dede7
...
...
@@ -274,8 +274,8 @@ A group of clusters that work together to schedule jobs.
.TP
\fBjob\fR
Used to modify specific fields of a job: Derived Exit Code,
the Admin
Comment
string, the Comment string
or WCKey.
Used to modify specific fields of a job: Derived Exit Code, Comment
,
AdminComment, SystemComment,
or WCKey.
.IP
.TP
...
...
@@ -1378,6 +1378,12 @@ Jobs must start at or after this time to be modified in the same format as
\f3EndTime\fP.
.IP
.TP
\fBSystemComment\fR=<\fIsystem_comment\fR>
Arbitrary descriptive string, usually managed by the BurstBufferPlugin.
Can only be modified by a Slurm administrator.
.IP
.TP
\fBUser\fR=<\fIuser_list\fR>
Used to specify the jobs of users jobs to alter.
...
...
@@ -1389,9 +1395,9 @@ Used to specify the wckeys to alter.
.IP
.P
The \fIDerivedExitCode\fP, \fIAdminComment\fP, \fIComment\fP
and \fIWCKey\fP
fields are the only fields of a job record
in the database that can be modified
after job completion.
The \fIDerivedExitCode\fP, \fIAdminComment\fP, \fIComment\fP
,
\fSystemComment\fP, and \fIWCKey\fP
fields are the only fields of a job record
in the database that can be modified
after job completion.
.IP
.SH "LIST/SHOW JOB FORMAT OPTIONS"
...
...
This diff is collapsed.
Click to expand it.
src/sacctmgr/job_functions.c
+
6
−
0
View file @
126dede7
...
...
@@ -196,6 +196,12 @@ static int _set_rec(int *start, int argc, char **argv,
xfree
(
job
->
admin_comment
);
job
->
admin_comment
=
strip_quotes
(
argv
[
i
]
+
end
,
NULL
,
1
);
set
=
1
;
}
else
if
(
!
xstrncasecmp
(
argv
[
i
],
"SystemComment"
,
MAX
(
command_len
,
13
)))
{
if
(
job
->
system_comment
)
xfree
(
job
->
system_comment
);
job
->
system_comment
=
strip_quotes
(
argv
[
i
]
+
end
,
NULL
,
1
);
set
=
1
;
}
else
if
(
!
xstrncasecmp
(
argv
[
i
],
"NewWCKey"
,
MAX
(
command_len
,
1
)))
{
if
(
job
->
wckey
)
...
...
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