job

package
v0.9.310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// What cedana-slurm's wrapper names the script it runs the job with, cedana-script-<jobid>.sh.
	// The shell keeps it open for as long as the job runs, and it is gone by the time the job
	// is restored.
	SLURM_SCRIPT_PREFIX = "cedana-script"
	// What it is kept as in the dump, and where its mode and owner go. CRIU wants the file
	// back exactly as it was.
	SLURM_SCRIPT_FILE       = "cedana-script"
	SLURM_SCRIPT_ATTRS_FILE = "cedana-script.json"
)

Variables

This section is empty.

Functions

func DumpSlurmScript added in v0.9.282

func DumpSlurmScript(next types.Dump) types.Dump

We manually restore the SLURM script because SLURM will delete the script used to launch the job step

func GetSlurmJobForDump

func GetSlurmJobForDump(next types.Dump) types.Dump

func GetSlurmJobForRestore

func GetSlurmJobForRestore(next types.Restore) types.Restore

func ResolveJobCgroupPath added in v0.9.296

func ResolveJobCgroupPath(jid uint32, pid uint32) (string, error)

func RestoreSlurmScript added in v0.9.282

func RestoreSlurmScript(next types.Restore) types.Restore

We manually restore the SLURM script because SLURM will delete the script used to launch the job step

func SetPIDForDump

func SetPIDForDump(next types.Dump) types.Dump

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL