Documentation ¶
Index ¶
- func NewJobreport(w io.Writer) (jobReport, error)
- func ReadFOFN(fn string) ([]string, error)
- func RenderTemplate(tpl string, object interface{}) string
- func RunWorkflow(fn string) error
- func SafeWriteConfigAs(fn string) error
- func TasksDir() string
- type Commander
- type DummyRunner
- type LocalRunner
- type Options
- type PBSRunner
- type Queue
- type Resources
- type Runner
- type SlurmRunner
- type Task
- type Tasks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJobreport ¶
func ReadFOFN ¶
ReadFOFN reads a file of filenames and returns them as a string slice. It does not check that the file exist or the user has permission to read them.
func RenderTemplate ¶
RenderTemplate renders the text/template tpl using the data from object. This must succeed and return a string, panics on error.
func RunWorkflow ¶
should this be in the tasks package to make in easier for users to run workflows?
func SafeWriteConfigAs ¶
Types ¶
type DummyRunner ¶
type DummyRunner struct{}
DummyRunner does not actually run jobs, it just accepts jobs to run and always reports that they completed successfully.
func (DummyRunner) Completed ¶
func (r DummyRunner) Completed(j *job) (bool, error)
func (DummyRunner) CompletedSuccessfully ¶
func (r DummyRunner) CompletedSuccessfully(j *job) (bool, error)
func (DummyRunner) Kill ¶
func (r DummyRunner) Kill(j *job) error
func (DummyRunner) ResourcesUsed ¶
func (r DummyRunner) ResourcesUsed(j *job) (resourcesUsed, error)
func (DummyRunner) Run ¶
func (r DummyRunner) Run(cxt executionContext) error
type LocalRunner ¶
type LocalRunner struct {
// contains filtered or unexported fields
}
func NewLocalRunner ¶
func NewLocalRunner() *LocalRunner
func (*LocalRunner) Completed ¶
func (r *LocalRunner) Completed(j *job) (bool, error)
func (*LocalRunner) CompletedSuccessfully ¶
func (r *LocalRunner) CompletedSuccessfully(j *job) (bool, error)
func (*LocalRunner) Kill ¶
func (r *LocalRunner) Kill(j *job) error
func (*LocalRunner) ResourcesUsed ¶
func (r *LocalRunner) ResourcesUsed(j *job) (resourcesUsed, error)
func (*LocalRunner) Run ¶
func (r *LocalRunner) Run(cxt executionContext) error
type PBSRunner ¶
type PBSRunner struct {
// contains filtered or unexported fields
}
func NewPBSRunner ¶
func (*PBSRunner) CompletedSuccessfully ¶
func (*PBSRunner) ResourcesUsed ¶
type SlurmRunner ¶
type SlurmRunner struct { }
func NewSlurmRunner ¶
func NewSlurmRunner() (*SlurmRunner, error)
func (*SlurmRunner) Completed ¶
func (r *SlurmRunner) Completed(j *job) (bool, error)
func (*SlurmRunner) CompletedSuccessfully ¶
func (r *SlurmRunner) CompletedSuccessfully(j *job) (bool, error)
func (*SlurmRunner) Kill ¶
func (r *SlurmRunner) Kill(j *job) error
func (*SlurmRunner) ResourcesUsed ¶
func (r *SlurmRunner) ResourcesUsed(j *job) (resourcesUsed, error)
func (*SlurmRunner) Run ¶
func (r *SlurmRunner) Run(ctx executionContext) error
type Task ¶
type Task struct { Name string CPUs int Memory int Time int Container string SingularityExtraArgs string }
Task provides some default implementations for Commanders. It can be embedded in a struct to partially implement the Commander interface.
func (Task) AnalysisName ¶
func (*Task) SetResources ¶
Click to show internal directories.
Click to hide internal directories.