func (s *StateStore) JobSummaryByID(ws memdb.WatchSet, jobID string) (*structs.JobSummary, error) {
	txn := s.db.Txn(false)

	watchCh, existing, err := txn.FirstWatch("job_summary", "id", jobID)
	if err != nil {
		return nil, err
	}

	ws.Add(watchCh)

	if existing != nil {
		summary := existing.(*structs.JobSummary)
		return summary, nil
	}

	return nil, nil
}
// JobSummary returns a job summary object which matches a specific id.
JobSummary returns a job summary object which matches a specific id.
// JobSummary returns a job summary object which matches a specific id .
func (s *StateStore) JobSummaryByID(ws memdb.WatchSet, jobID string) (*structs.JobSummary, error) {
	txn := s.db.Txn(false)
	watchCh, existing, err := txn.FirstWatch("job_summary", "id", jobID)
	if err != nil {
		return nil, err
	}
	ws.Add(watchCh)
	if existing != nil {
		summary := existing.(*structs.JobSummary)
		return summary, nil
	}
	return nil, nil
}
func ( s * StateStore ) JobSummaryByID ( ws memdb . WatchSet , jobID string ) ( * structs . JobSummary , error ) { txn := s . db . Txn ( false ) watchCh , existing , err := txn . FirstWatch ( " " , " " , jobID ) if err != nil { return nil , err } ws . Add ( watchCh ) if existing != nil { summary := existing . ( * structs . JobSummary ) return summary , nil } return nil , nil }
JobSummary returns a job summary object which matches a specific id.
JobSummary returns a job summary object which matches a specific id .