func (store *JobStore) GetJobs() []*models.JobBase {

	jobs := []*models.JobBase{}
	store.RLock()
	for _, jobdata := range store.alloc.Jobs {
		if jobbase, ret := store.jobs[jobdata.JobId]; ret {
			jobs = append(jobs, jobbase)
		}
	}
	store.RUnlock()
	return jobs
}
//GetJobs is exported
//return jobs from cache alloc.
GetJobs is exported
return jobs from cache alloc.
// GetJobs is exported // return jobs from cache alloc .
func (store *JobStore) GetJobs() []*models.JobBase {
	jobs := []*models.JobBase{}
	store.RLock()
	for _, jobdata := range store.alloc.Jobs {
		if jobbase, ret := store.jobs[jobdata.JobId]; ret {
			jobs = append(jobs, jobbase)
		}
	}
	store.RUnlock()
	return jobs
}
func ( store * JobStore ) GetJobs ( ) [ ] * models . JobBase { jobs := [ ] * models . JobBase { } store . RLock ( ) for _ , jobdata := range store . alloc . Jobs { if jobbase , ret := store . jobs [ jobdata . JobId ] ; ret { jobs = append ( jobs , jobbase ) } } store . RUnlock ( ) return jobs }
GetJobs is exported
return jobs from cache alloc.
GetJobs is exported return jobs from cache alloc .