| 60 | } |
| 61 | |
| 62 | type 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 | |
| 82 | func (Task) TableName() string { |
| 83 | return "_devlake_tasks" |
nothing calls this directly
no outgoing calls
no test coverage detected