executor

package
v0.0.0-...-ff2c98a Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCronJob

func InitCronJob(dataxKey, jobKey, dataxEnv string) (*cron.Cron, error)

Types

type Config

type Config struct {
	Xms       string
	Xmx       string
	JobExt    string
	Mode      string
	LogLevel  string
	DataXHome string
	JobId     int
}

type DataX

type DataX struct {
	Tag     string
	Command *exec.Cmd
	Pid     int
	// contains filtered or unexported fields
}

func Exec

func Exec(ctx context.Context, job *Job, args []string) (datax *DataX, err error)

func (DataX) Wait

func (d DataX) Wait() (err error)

type Job

type Job struct {
	JobName  string
	DataXEnv string
	Args     []string
	JobPath  string
	JobExt   string

	Tasks []Task
	// contains filtered or unexported fields
}

func (*Job) Run

func (e *Job) Run()

type Task

type Task struct {
	Name      string
	Successor []string
}

Jump to

Keyboard shortcuts

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