func (store *JobStore) GetJob(jobid string) *models.JobBase {

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