MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / GetAllUnFinishSyncTasks

Function GetAllUnFinishSyncTasks

model/task.go:173–182  ·  view source on GitHub ↗
(limit int)

Source from the content-addressed store, hash-verified

171}
172
173func GetAllUnFinishSyncTasks(limit int) []*Task {
174 var tasks []*Task
175 var err error
176 // get all tasks progress is not 100%
177 err = DB.Where("progress != ?", "100%").Limit(limit).Order("id").Find(&tasks).Error
178 if err != nil {
179 return nil
180 }
181 return tasks
182}
183
184func GetByOnlyTaskId(taskId string) (*Task, bool, error) {
185 if taskId == "" {

Callers 1

UpdateTaskBulkFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected