job

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envs

type Envs map[string]string

type Job

type Job struct {
	Strategy  kb.Strategy
	Parent    plan.PeerID
	HostList  plan.HostList
	PortRange plan.PortRange
	Prog      string
	Args      []string
	LogDir    string
}

func (Job) CreateAllProcs

func (j Job) CreateAllProcs(pl plan.PeerList) []Proc

func (Job) CreateProcs

func (j Job) CreateProcs(pl plan.PeerList, host uint32) []Proc

func (Job) NewProc

func (j Job) NewProc(peer plan.PeerID, localRank int, checkpoint string, pl plan.PeerList) Proc

type Proc

type Proc struct {
	Name    string
	Prog    string
	Args    []string
	Envs    Envs
	IPv4    uint32
	PubAddr string
	LogDir  string
}

Proc represents a process

func (Proc) Cmd

func (p Proc) Cmd() *exec.Cmd

func (Proc) Script

func (p Proc) Script() string

Jump to

Keyboard shortcuts

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