cstar.execution.scheduler_job.SlurmJob.cancel

Attention

This project is still in an early phase of development.

The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.

cstar.execution.scheduler_job.SlurmJob.cancel#

SlurmJob.cancel()#

Cancel the job in the SLURM scheduler.

This method cancels the job using the SLURM scancel command and provides feedback about the cancellation process.

It can only be used on jobs with RUNNING or PENDING status.

Raises:

RuntimeError – If the scancel command fails or returns a non-zero exit code.