Documentation
¶
Index ¶
Constants ¶
View Source
const ( JobStatusSubmitted = "submitted" JobStatusInProgress = "inProgress" JobStatusDone = "done" JobStatusFailed = "failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
ID uuid.UUID `json:"id" gorm:"type:uuid;index"`
CreatedAt time.Time `json:"createdAt"`
Status string `json:"status" gorm:"index"`
PresetID uuid.UUID `json:"presetId"`
Preset *Preset `json:"preset,omitempty" gorm:"-"`
Params JobParams `json:"params" gorm:"type:jsonb"`
CommandOutput string `json:"commandOutput" gorm:"type:text"`
// contains filtered or unexported fields
}
func (*Job) Done ¶
func (job *Job) Done() <-chan struct{}
Done - channel that blocks until process has finished
type JobParams ¶
JobParams - Custom map[string]string for postgres jsob compatibility
type Preset ¶
type Preset struct {
ID uuid.UUID `json:"id"`
Description string `json:"description"`
Path string `json:"path"` // Executable path
PresetGroupID *uuid.UUID `json:"presetGroupId,omitempty"`
// Arguments to pass to executable
// Any arguments that should be replaced by job Params should be delimited by "{{" and "}}"
// Example: {{input}} will get replaced if "input" is present in job.Params map
Args []string `json:"args"`
}
Preset - A single command + args to exec
type PresetGroup ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cli
command
|
|
|
cli_pool
command
|
|
|
rmq_server
command
|
|
|
rmq_worker
command
|
|
|
rmq_worker_db
command
|
|
|
server
command
|
|
Click to show internal directories.
Click to hide internal directories.