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

Method Persisted

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

Source from the content-addressed store, hash-verified

210}
211
212func (t *DBTask) Persisted() bool {
213 t.mu.Lock()
214 defer t.mu.Unlock()
215
216 return t.Task != nil && t.Task.ID != 0
217}
218
219func (t *DBTask) Executed() time.Duration {
220 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected