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

Method Executed

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

Source from the content-addressed store, hash-verified

217}
218
219func (t *DBTask) Executed() time.Duration {
220 t.mu.Lock()
221 defer t.mu.Unlock()
222
223 if t.Task != nil {
224 return t.Task.PublicState.ExecutedDuration
225 }
226 return 0
227}
228
229func (t *DBTask) Retried() int {
230 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected