Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
212
func
(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
219
func
(t *DBTask) Executed() time.Duration {
220
t.mu.Lock()
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected