-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathrun.go
26 lines (22 loc) · 847 Bytes
/
run.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package agent
import "github.com/raystack/meteor/recipe"
// TaskType is the type of task
type TaskType string
const (
// TaskTypeExtract is the type of task that extracts a record
TaskTypeExtract TaskType = "extract"
// TaskTypeProcess is the type of task that processes a record
TaskTypeProcess TaskType = "process"
// TaskTypeSink is the type of task that sends a record to a sink
TaskTypeSink TaskType = "sink"
)
// Run contains the json data
type Run struct {
Recipe recipe.Recipe `json:"recipe"`
Error error `json:"error"`
DurationInMs int `json:"duration_in_ms"`
ExtractorRetries int `json:"extractor_retries"`
AssetsExtracted int `json:"assets_extracted"`
RecordCount int `json:"record_count"`
Success bool `json:"success"`
}