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

Method OnStatusTransition

pkg/queue/task.go:146–153  ·  view source on GitHub ↗
(newStatus task.Status)

Source from the content-addressed store, hash-verified

144}
145
146func (t *InMemoryTask) OnStatusTransition(newStatus task.Status) {
147 t.mu.Lock()
148 defer t.mu.Unlock()
149
150 if t.Task != nil {
151 t.Task.Status = newStatus
152 }
153}
154
155// DBTask implements Task interface related to DB schema
156type DBTask struct {

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected