+ // Initialize Pull queue and worker
+ keepClient := &keepclient.KeepClient{
+ Arvados: &arvadosclient.ArvadosClient{},
+ Want_replicas: 1,
+ Client: &http.Client{},
+ }
+
+ // Initialize the pullq and worker
+ pullq = NewWorkQueue()
+ go RunPullWorker(pullq, keepClient)
+
+ // Initialize the trashq and worker
+ trashq = NewWorkQueue()
+ go RunTrashWorker(trashq)
+
+ // Start emptyTrash goroutine
+ doneEmptyingTrash := make(chan bool)
+ go emptyTrash(doneEmptyingTrash, trashCheckInterval)
+