MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / ErrorHistory

Method ErrorHistory

pkg/queue/task.go:250–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248}
249
250func (t *DBTask) ErrorHistory() []error {
251 t.mu.Lock()
252 defer t.mu.Unlock()
253
254 if t.Task != nil {
255 return lo.Map(t.Task.PublicState.ErrorHistory, func(err string, index int) error {
256 return errors.New(err)
257 })
258 }
259
260 return nil
261}
262
263func (t *DBTask) Model() *ent.Task {
264 t.mu.Lock()

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
NewMethod · 0.65

Tested by

no test coverage detected