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
3c582329
Commit
3c582329
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
merge -r19050:19072
https://eris.llnl.gov/svn/slurm/branches/slurm-2.0
parent
9cc782c8
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/wiki2/job_modify.c
+9
-2
9 additions, 2 deletions
src/plugins/sched/wiki2/job_modify.c
with
9 additions
and
2 deletions
src/plugins/sched/wiki2/job_modify.c
+
9
−
2
View file @
3c582329
...
@@ -238,11 +238,11 @@ static int _job_modify(uint32_t jobid, char *bank_ptr,
...
@@ -238,11 +238,11 @@ static int _job_modify(uint32_t jobid, char *bank_ptr,
hostlist_t
hl
;
hostlist_t
hl
;
char
*
tasklist
;
char
*
tasklist
;
if
(
!
job_ptr
->
details
)
{
if
(
!
IS_JOB_PENDING
(
job_ptr
)
||
!
job_ptr
->
details
)
{
/* Job is done, nothing to reset */
/* Job is done, nothing to reset */
if
(
new_hostlist
==
'\0'
)
if
(
new_hostlist
==
'\0'
)
goto
host_fini
;
goto
host_fini
;
error
(
"wiki: MODIFYJOB
task
list of non-pending "
error
(
"wiki: MODIFYJOB
host
list of non-pending "
"job %u"
,
jobid
);
"job %u"
,
jobid
);
return
ESLURM_DISABLED
;
return
ESLURM_DISABLED
;
}
}
...
@@ -292,12 +292,19 @@ host_fini: if (rc) {
...
@@ -292,12 +292,19 @@ host_fini: if (rc) {
if
(
part_name_ptr
)
{
if
(
part_name_ptr
)
{
struct
part_record
*
part_ptr
;
struct
part_record
*
part_ptr
;
if
(
!
IS_JOB_PENDING
(
job_ptr
))
{
error
(
"wiki: MODIFYJOB partition of non-pending "
"job %u"
,
jobid
);
return
ESLURM_DISABLED
;
}
part_ptr
=
find_part_record
(
part_name_ptr
);
part_ptr
=
find_part_record
(
part_name_ptr
);
if
(
part_ptr
==
NULL
)
{
if
(
part_ptr
==
NULL
)
{
error
(
"wiki: MODIFYJOB has invalid partition %s"
,
error
(
"wiki: MODIFYJOB has invalid partition %s"
,
part_name_ptr
);
part_name_ptr
);
return
ESLURM_INVALID_PARTITION_NAME
;
return
ESLURM_INVALID_PARTITION_NAME
;
}
}
info
(
"wiki: change job %u partition %s"
,
info
(
"wiki: change job %u partition %s"
,
jobid
,
part_name_ptr
);
jobid
,
part_name_ptr
);
xfree
(
job_ptr
->
partition
);
xfree
(
job_ptr
->
partition
);
...
...
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