hyperion-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Hyperion.Slurm.Sbatch

Synopsis

Documentation

data SbatchError Source #

Error from running sbatch. The Strings are the contents of stdout and stderr from sbatch.

data SbatchOptions Source #

Type representing possible options for sbatch. Map 1-to-1 to sbatch options, so see man sbatch for details.

Constructors

SbatchOptions 

Fields

Instances

Instances details
Show SbatchOptions Source # 
Instance details

Defined in Hyperion.Slurm.Sbatch

defaultSbatchOptions :: SbatchOptions Source #

Default SbatchOptions. Request 1 task on 1 node for 24 hrs, everything else unspecified.

sBatchOptionString :: SbatchOptions -> String Source #

Convert SbatchOptions to a string of options for sbatch

sbatchScript :: SbatchOptions -> String -> IO JobId Source #

Runs sbatch on a batch file with options pulled from SbatchOptions and script given as the String input parameter. If sbatch exists with failure then throws SbatchError.

sbatchCommand :: SbatchOptions -> FilePath -> [Text] -> IO JobId Source #

Runs the command given by FilePath with arguments [Text] in sbatch script via sbatchScript. If sbatch fails then throws SbatchError.