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

Method OnIterationComplete

pkg/queue/task.go:318–325  ·  view source on GitHub ↗
(d time.Duration)

Source from the content-addressed store, hash-verified

316}
317
318func (t *DBTask) OnIterationComplete(d time.Duration) {
319 t.mu.Lock()
320 defer t.mu.Unlock()
321
322 if t.Task != nil {
323 t.Task.PublicState.ExecutedDuration += d
324 }
325}
326
327func (t *DBTask) ResumeTime() int64 {
328 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected