|
@@ -451,6 +451,17 @@ func (sched *Scheduler) scheduleOne() {
|
|
|
// customcache.LabCache.CleanCache()
|
|
|
// default:
|
|
|
// }
|
|
|
+
|
|
|
+ // Check if the cache needs update
|
|
|
+ select {
|
|
|
+ // clean the cache if 10 seconds are passed
|
|
|
+ case <-customcache.LabCache.Timeout.C:
|
|
|
+ klog.Infof("Time to erase")
|
|
|
+ //customcache.LabCache.Timeout.Stop()
|
|
|
+ customcache.LabCache.CleanCache()
|
|
|
+ default:
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
fwk := sched.config.Framework
|
|
|
|