MCPcopy
hub / github.com/tuna/tunasync / GetJobs

Method GetJobs

worker/schedule.go:36–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36func (q *scheduleQueue) GetJobs() (jobs []jobScheduleInfo) {
37 cur := q.list.Iterator()
38 defer cur.Close()
39
40 for cur.Next() {
41 cj := cur.Value().(*mirrorJob)
42 jobs = append(jobs, jobScheduleInfo{
43 cj.Name(),
44 cur.Key().(time.Time),
45 })
46 }
47 return
48}
49
50func (q *scheduleQueue) AddJob(schedTime time.Time, job *mirrorJob) {
51 q.Lock()

Callers 1

runScheduleMethod · 0.80

Calls 3

ValueMethod · 0.80
CloseMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected