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
d2a5b01c
Commit
d2a5b01c
authored
9 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Fix slurm_kill_job2() API
The "flags" option was not being forwarded to the slurmctld, but was always set to 0.
parent
44ae8707
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
slurm/slurm.h.in
+2
-6
2 additions, 6 deletions
slurm/slurm.h.in
src/api/cancel.c
+3
-3
3 additions, 3 deletions
src/api/cancel.c
with
5 additions
and
9 deletions
slurm/slurm.h.in
+
2
−
6
View file @
d2a5b01c
...
...
@@ -2987,12 +2987,8 @@ extern int slurm_kill_job_step PARAMS((uint32_t job_id, uint32_t step_id,
/*
* slurm_kill_job2()
*/
extern int slurm_kill_job2 PARAMS((const char *, uint16_t, uint16_t));
/*
* slurm_kill_job_step2()
*/
extern int slurm_kill_job_step2 PARAMS((const char *, uint16_t, uint16_t));
extern int slurm_kill_job2 PARAMS((const char *job_id, uint16_t signal,
uint16_t flags));
/*
* slurm_signal_job - send the specified signal to all steps of an existing job
...
...
This diff is collapsed.
Click to expand it.
src/api/cancel.c
+
3
−
3
View file @
d2a5b01c
...
...
@@ -112,7 +112,7 @@ slurm_kill_job_step (uint32_t job_id, uint32_t step_id, uint16_t signal)
req
.
signal
=
signal
;
req
.
flags
=
0
;
msg
.
msg_type
=
REQUEST_CANCEL_JOB_STEP
;
msg
.
data
=
&
req
;
msg
.
data
=
&
req
;
if
(
slurm_send_recv_controller_rc_msg
(
&
msg
,
&
rc
)
<
0
)
return
SLURM_FAILURE
;
...
...
@@ -126,7 +126,7 @@ slurm_kill_job_step (uint32_t job_id, uint32_t step_id, uint16_t signal)
/* slurm_kill_job2()
*/
int
slurm_kill_job2
(
const
char
*
job_id
,
uint16_t
signal
,
uint16_t
batch_
flag
)
slurm_kill_job2
(
const
char
*
job_id
,
uint16_t
signal
,
uint16_t
flag
s
)
{
int
cc
;
slurm_msg_t
msg
;
...
...
@@ -144,7 +144,7 @@ slurm_kill_job2(const char *job_id, uint16_t signal, uint16_t batch_flag)
req
.
sjob_id
=
xstrdup
(
job_id
);
req
.
job_step_id
=
NO_VAL
;
req
.
signal
=
signal
;
req
.
flags
=
0
;
req
.
flags
=
flags
;
msg
.
msg_type
=
REQUEST_KILL_JOB
;
msg
.
data
=
&
req
;
...
...
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