Skip to content

Conversation

martijnkruiten
Copy link

This is AI-generated code and might not be correct/complete. It works for our use case and enabled us to upgrade Slurm to 25.05 on our system. I'm opening this merge request to give others the opportunity to see if this works for their use case until official support is added.

@basvandervlies
Copy link
Contributor

Just compiled for debian 12 and slrum 25.05.3 and works as expected for me

@swalterfub
Copy link

I get the following error with my use case (example code):

import pyslurm
desc = pyslurm.JobSubmitDescription(
    time_limit="00:03:00",
    array="1-5",
    qos="standard",
    memory_per_cpu="1",
    script="#!/bin/bash\n sleep ${SLURM_ARRAY_TASK_ID}m")
job_id = desc.submit()

and I get the error:

Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    job_id = desc.submit()
  File "pyslurm/core/job/submission.pyx", line 103, in pyslurm.core.job.submission.JobSubmitDescription.submit
  File "pyslurm/core/error.pyx", line 111, in pyslurm.core.error.verify_rpc
pyslurm.core.error.RPCError: I/O error writing script/environment to file

@tazend tazend self-assigned this Sep 23, 2025
@tazend
Copy link
Member

tazend commented Sep 23, 2025

I'll work through this PR within the next couple of days / or rather use it as a starting point (see this comment).

@tazend tazend mentioned this pull request Sep 28, 2025
@tazend
Copy link
Member

tazend commented Sep 28, 2025

Hey,

going to close this PR, as I've created a separate one with #387 that has a few more/different changes for compatibility.
Thank you again @martijnkruiten for providing a starting point with this PR.

@swalterfub can you try your code-example with the new PR? I just tried it on my test cluster, and it seems to work (on 25.05.3)

@tazend tazend closed this Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants