luci: Index | Files

package cmdrunner

import ""


Package Files



var ErrHardTimeout = errors.Reason("timeout happens").Err()

ErrHardTimeout is error for timeout from Run command.

func Run Uses

func Run(ctx context.Context, command []string, cwd string, env environ.Env, hardTimeout time.Duration, gracePeriod time.Duration, lowerPriority bool, containment bool) (int, error)

Run runs the command.

type UploadStats Uses

type UploadStats struct {
    Duration time.Duration `json:"duration"`

    ItemsCold []byte `json:"items_cold"`
    ItemsHot  []byte `json:"items_hot"`

UploadStats is stats of upload or uploadThenDelete.

Package cmdrunner imports 17 packages (graph). Updated 2020-11-26. Refresh now. Tools for package owners.