slurm

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeLayout = "2006-01-02T15:04:05"
)

Variables

This section is empty.

Functions

func SqueueRequestString

func SqueueRequestString(fields []string) string

Types

type ListedJob

type ListedJob struct {
	Name             string
	ID               string
	Partition        string
	State            string
	ExitCode         string
	SubmitTime       string
	NodeList         string
	NodeNumber       string
	TimeUsed         string
	TimeLimit        string
	OutputFile       string
	ErrorFile        string
	WorkingDirectory string
}

func UnmarshalSqueueOutput added in v1.2.0

func UnmarshalSqueueOutput(data []byte) (ListedJob, error)

type Slurm

type Slurm struct {
}

func (*Slurm) Cancel

func (b *Slurm) Cancel(jobName string) error

func (*Slurm) JobData

func (b *Slurm) JobData(job batchsystem.Job) (string, error)

func (*Slurm) ListJobs

func (b *Slurm) ListJobs(all bool) ([]spanner.Job, error)

func (*Slurm) Shell

func (b *Slurm) Shell(jobName string, nodeID int) error

func (*Slurm) Submit

func (b *Slurm) Submit(jobData string) error

func (*Slurm) TentVariables

func (b *Slurm) TentVariables() tent.Variables

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳