MCPcopy Index your code
hub / github.com/apache/devlake / Task

Struct Task

backend/core/models/task.go:62–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62type Task struct {
63 common.Model
64 Plugin string `json:"plugin" gorm:"index"`
65 Subtasks []string `json:"subtasks" gorm:"type:json;serializer:json"`
66 Options map[string]interface{} `json:"options" gorm:"serializer:encdec"`
67 Status string `json:"status"`
68 Message string `json:"message"`
69 ErrorName string `json:"errorName"`
70 Progress float32 `json:"progress"`
71 ProgressDetail *TaskProgressDetail `json:"progressDetail" gorm:"-"`
72
73 FailedSubTask string `json:"failedSubTask"`
74 PipelineId uint64 `json:"pipelineId" gorm:"index"`
75 PipelineRow int `json:"pipelineRow"`
76 PipelineCol int `json:"pipelineCol"`
77 BeganAt *time.Time `json:"beganAt"`
78 FinishedAt *time.Time `json:"finishedAt" gorm:"index"`
79 SpentSeconds int `json:"spentSeconds"`
80}
81
82func (Task) TableName() string {
83 return "_devlake_tasks"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected