agent

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	*Config
	// contains filtered or unexported fields
}

Agent is the interface to run / cancel / signal / status / etc.

func New

func (*Agent) HandleHTTP

func (a *Agent) HandleHTTP(w http.ResponseWriter, r *http.Request)

func (*Agent) Kill

func (a *Agent) Kill()

Kill sends KILL signal to all child processes.

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

Run starts the dags execution.

func (*Agent) Signal

func (a *Agent) Signal(sig os.Signal)

Signal sends the signal to the processes running if processes do not terminate after MaxCleanUp time, it will send KILL signal.

func (*Agent) Status

func (a *Agent) Status() *model.Status

Status returns the current status of the dags.

type Config

type Config struct {
	DAG *dag.DAG
	Dry bool

	// RetryTarget is the status to retry.
	RetryTarget *model.Status
}

Config contains the configuration for an Agent.

type HTTPError

type HTTPError struct {
	Code    int
	Message string
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

Jump to

Keyboard shortcuts

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