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

Method Owner

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

Source from the content-addressed store, hash-verified

187}
188
189func (t *DBTask) Owner() *ent.User {
190 t.mu.Lock()
191 defer t.mu.Unlock()
192
193 if t.DirectOwner != nil {
194 return t.DirectOwner
195 }
196 if t.Task != nil {
197 return t.Task.Edges.User
198 }
199 return nil
200}
201
202func (t *DBTask) State() string {
203 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected