midr @ a4cd5de795926537318f94aa34c9f2579c29fc11

ref: Make the slice at once

A small optimization, it will create the slice at once so it won't to
expand multiple time later when append is called.
 1diff --git a/worker/worker.go b/worker/worker.go
 2index f56716f0b7426fcba4407da26eb8150f8dbd1986..06fac3601335e04a918fb55124be04b218578df3 100644
 3--- a/worker/worker.go
 4+++ b/worker/worker.go
 5@@ -91,10 +91,12 @@ 	go w.startScheduler(model)
 6 }
 7 
 8 func (w *Worker) GetJobs() []Job {
 9-	jobs := []Job{}
10+	jobs := make([]Job, len(w.jobs))
11+	count := 0
12 
13 	for k, v := range w.jobs {
14-		jobs = append(jobs, Job{Id: k, Status: v})
15+		jobs[count] = Job{Id: k, Status: v}
16+		count++
17 	}
18 
19 	return jobs