func (s *StateStore) DeleteJobSummary(index uint64, id string) error {
	txn := s.db.Txn(true)
	defer txn.Abort()

	// Delete the job summary
	if _, err := txn.DeleteAll("job_summary", "id", id); err != nil {
		return fmt.Errorf("deleting job summary failed: %v", err)
	}
	if err := txn.Insert("index", &IndexEntry{"job_summary", index}); err != nil {
		return fmt.Errorf("index update failed: %v", err)
	}
	txn.Commit()
	return nil
}
// DeleteJobSummary deletes the job summary with the given ID. This is for
// testing purposes only.
DeleteJobSummary deletes the job summary with the given ID. This is for
testing purposes only.
// DeleteJobSummary deletes the job summary with the given ID . This is for // testing purposes only .
func (s *StateStore) DeleteJobSummary(index uint64, id string) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	if _, err := txn.DeleteAll("job_summary", "id", id); err != nil {
		return fmt.Errorf("deleting job summary failed: %v", err)
	}
	if err := txn.Insert("index", &IndexEntry{"job_summary", index}); err != nil {
		return fmt.Errorf("index update failed: %v", err)
	}
	txn.Commit()
	return nil
}
func ( s * StateStore ) DeleteJobSummary ( index uint64 , id string ) error { txn := s . db . Txn ( true ) defer txn . Abort ( ) if _ , err := txn . DeleteAll ( " " , " " , id ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := txn . Insert ( " " , & IndexEntry { " " , index } ) ; err != nil { return fmt . Errorf ( " " , err ) } txn . Commit ( ) return nil }
DeleteJobSummary deletes the job summary with the given ID.
DeleteJobSummary deletes the job summary with the given ID .
// Delete the job summary