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
cd28f06b
Commit
cd28f06b
authored
12 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-2.3'
parents
c2a341f5
cf81b117
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+2
-1
2 additions, 1 deletion
NEWS
src/plugins/sched/wiki2/get_jobs.c
+21
-3
21 additions, 3 deletions
src/plugins/sched/wiki2/get_jobs.c
with
23 additions
and
4 deletions
NEWS
+
2
−
1
View file @
cd28f06b
...
@@ -244,7 +244,8 @@ documents those changes that are of interest to users and admins.
...
@@ -244,7 +244,8 @@ documents those changes that are of interest to users and admins.
and time limit where it was previously set by an admin.
and time limit where it was previously set by an admin.
-- Fix issue where log message is more than 256 chars and then has a format.
-- Fix issue where log message is more than 256 chars and then has a format.
-- Fix sched/wiki2 to support job account name, gres, partition name, wckey,
-- Fix sched/wiki2 to support job account name, gres, partition name, wckey,
or working directory that contains "#" (a job record separator).
or working directory that contains "#" (a job record separator). Also fix
for wckey or working directory that contains a double quote '\"'.
-- CRAY - fix for handling memory requests from user for an allocation.
-- CRAY - fix for handling memory requests from user for an allocation.
-- Add support for switches parameter to the job_submit/lua plugin. Work by
-- Add support for switches parameter to the job_submit/lua plugin. Work by
Par Andersson, NSC.
Par Andersson, NSC.
...
...
This diff is collapsed.
Click to expand it.
src/plugins/sched/wiki2/get_jobs.c
+
21
−
3
View file @
cd28f06b
...
@@ -326,8 +326,16 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time)
...
@@ -326,8 +326,16 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time)
if
(
!
IS_JOB_FINISHED
(
job_ptr
)
&&
job_ptr
->
details
&&
if
(
!
IS_JOB_FINISHED
(
job_ptr
)
&&
job_ptr
->
details
&&
job_ptr
->
details
->
work_dir
)
{
job_ptr
->
details
->
work_dir
)
{
snprintf
(
tmp
,
sizeof
(
tmp
),
"IWD=
\"
%s
\"
;"
,
if
((
quote
=
strchr
(
job_ptr
->
details
->
work_dir
,
(
int
)
'\"'
)))
{
job_ptr
->
details
->
work_dir
);
/* Moab does not like strings containing a quote */
*
quote
=
'\0'
;
snprintf
(
tmp
,
sizeof
(
tmp
),
"IWD=
\"
%s
\"
;"
,
job_ptr
->
details
->
work_dir
);
*
quote
=
'\"'
;
}
else
{
snprintf
(
tmp
,
sizeof
(
tmp
),
"IWD=
\"
%s
\"
;"
,
job_ptr
->
details
->
work_dir
);
}
xstrcat
(
buf
,
tmp
);
xstrcat
(
buf
,
tmp
);
}
}
...
@@ -340,7 +348,17 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time)
...
@@ -340,7 +348,17 @@ static char * _dump_job(struct job_record *job_ptr, time_t update_time)
}
}
if
(
job_ptr
->
wckey
)
{
if
(
job_ptr
->
wckey
)
{
snprintf
(
tmp
,
sizeof
(
tmp
),
"WCKEY=
\"
%s
\"
;"
,
job_ptr
->
wckey
);
if
((
quote
=
strchr
(
job_ptr
->
wckey
,
(
int
)
'\"'
)))
{
/* Moab does not like strings containing a quote */
*
quote
=
'\0'
;
snprintf
(
tmp
,
sizeof
(
tmp
),
"WCKEY=
\"
%s
\"
;"
,
job_ptr
->
wckey
);
*
quote
=
'\"'
;
xstrcat
(
buf
,
tmp
);
}
else
{
snprintf
(
tmp
,
sizeof
(
tmp
),
"WCKEY=
\"
%s
\"
;"
,
job_ptr
->
wckey
);
}
xstrcat
(
buf
,
tmp
);
xstrcat
(
buf
,
tmp
);
}
}
...
...
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