Skip to content

Commit 642eafc

Browse files
committed
fix batch_script retrieval
1 parent 0bc92d1 commit 642eafc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyslurm/core/job/job.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ cdef class Job:
654654
slurm_msg_t_init(&resp)
655655

656656
memset(&msg, 0, sizeof(msg))
657-
msg.job_id = self.id
657+
msg.step_id.job_id = self.id
658658
req.msg_type = slurm.REQUEST_BATCH_SCRIPT
659-
req.data = &msg
659+
req.data = &msg
660660

661661
rc = slurm_send_recv_controller_msg(&req, &resp, working_cluster_rec)
662662
verify_rpc(rc)

pyslurm/slurm/extra.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ctypedef struct return_code_msg_t:
6363

6464
# https://github.com/SchedMD/slurm/blob/slurm-24-11-0-1/src/common/slurm_protocol_defs.h#L432
6565
ctypedef struct job_id_msg_t:
66-
uint32_t job_id
66+
slurm_step_id_t step_id
6767
uint16_t show_flags
6868

6969
# https://github.com/SchedMD/slurm/blob/slurm-24-05-3-1/src/common/msg_type.h#L45

0 commit comments

Comments
 (0)