Skip to content

Slurm - #473

Draft
Gautzilla wants to merge 23 commits into
Project-OSmOSE:mainfrom
Gautzilla:slurm
Draft

Slurm#473
Gautzilla wants to merge 23 commits into
Project-OSmOSE:mainfrom
Gautzilla:slurm

Conversation

@Gautzilla

Copy link
Copy Markdown
Contributor

🍹Slurp the SLURM

This PR aims at adding the osekit.job.scheduler.slurm class, which can be used to submit jobs in a SLURM scheduler.

It'll be developed alongside #465, as some of the code in #465 is still PBS-locked. I'll do some edits in #465 when I feel like some features that I thought were PBS-specific can be moved up in the Scheduler class, and I'll rebase this branch on the Scheduler one from time to time.

In the end, the user should be able to run public transforms in a slurm workload manager easily:

from osekit.job.builder import JobBuilder
from osekit.job.config import JobConfig
from osekit.job.scheduler.slurm import Slurm
from osekit.public.project import Project

project = Project(...)  # See the Project documentation

job_config = JobConfig(...)  # See the JobConfig documentation

scheduler = Slurm(partition="cpu")  # Scheduler in which the job is submitted

project.job_builder = JobBuilder(
    config=job_config,
    scheduler=scheduler,
)

# Now the dataset has a non-None job_builder attribute,
# running a transform will write a SLURM file in the logs directory
# and submit it through the selected scheduler.

project.run(...)  # See the Transform documentation

@Gautzilla
Gautzilla requested a review from mathieudpnt August 31, 2026 08:48
@Gautzilla Gautzilla self-assigned this Aug 31, 2026
@Gautzilla Gautzilla added the Feature A new feature to add to OSEkit label Aug 31, 2026
@coveralls

coveralls commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 99.053% (-0.04%) from 99.089% — Gautzilla:slurm into Project-OSmOSE:main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature A new feature to add to OSEkit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants