func (store *JobStore) ClearJobs() {

	store.Lock()
	store.alloc.Jobs = []*models.JobData{}
	store.alloc.Version = 0
	store.getter.Quit()
	for jobid := range store.jobs {
		delete(store.jobs, jobid)
	}
	store.Unlock()
}
//ClearJobs is exported
//clear all cache jobs and alloc.
ClearJobs is exported
clear all cache jobs and alloc.
// ClearJobs is exported // clear all cache jobs and alloc .
func (store *JobStore) ClearJobs() {
	store.Lock()
	store.alloc.Jobs = []*models.JobData{}
	store.alloc.Version = 0
	store.getter.Quit()
	for jobid := range store.jobs {
		delete(store.jobs, jobid)
	}
	store.Unlock()
}
func ( store * JobStore ) ClearJobs ( ) { store . Lock ( ) store . alloc . Jobs = [ ] * models . JobData { } store . alloc . Version = 0 store . getter . Quit ( ) for jobid := range store . jobs { delete ( store . jobs , jobid ) } store . Unlock ( ) }
ClearJobs is exported
clear all cache jobs and alloc.
ClearJobs is exported clear all cache jobs and alloc .