MCPcopy Create free account
hub / github.com/flant/shell-operator / BaseTask

Struct BaseTask

pkg/task/task.go:39–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39type BaseTask struct {
40 Id string
41 Type TaskType
42 LogLabels map[string]string
43 FailureCount int // Failed executions count
44 FailureMessage string
45 QueueName string
46 QueuedAt time.Time
47
48 Props map[string]interface{}
49
50 lock sync.RWMutex
51 Metadata interface{}
52
53 compactionID string
54
55 processing atomic.Bool
56}
57
58func NewTask(taskType TaskType) *BaseTask {
59 taskId := uuid.Must(uuid.NewV4()).String()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected