func (s *StateStore) JobsByPeriodic(ws memdb.WatchSet, periodic bool) (memdb.ResultIterator, error) {
	txn := s.db.Txn(false)

	iter, err := txn.Get("jobs", "periodic", periodic)
	if err != nil {
		return nil, err
	}

	ws.Add(iter.WatchCh())

	return iter, nil
}
// JobsByPeriodic returns an iterator over all the periodic or non-periodic jobs.
JobsByPeriodic returns an iterator over all the periodic or non-periodic jobs.
// JobsByPeriodic returns an iterator over all the periodic or non - periodic jobs .
func (s *StateStore) JobsByPeriodic(ws memdb.WatchSet, periodic bool) (memdb.ResultIterator, error) {
	txn := s.db.Txn(false)
	iter, err := txn.Get("jobs", "periodic", periodic)
	if err != nil {
		return nil, err
	}
	ws.Add(iter.WatchCh())
	return iter, nil
}
func ( s * StateStore ) JobsByPeriodic ( ws memdb . WatchSet , periodic bool ) ( memdb . ResultIterator , error ) { txn := s . db . Txn ( false ) iter , err := txn . Get ( " " , " " , periodic ) if err != nil { return nil , err } ws . Add ( iter . WatchCh ( ) ) return iter , nil }
JobsByPeriodic returns an iterator over all the periodic or non-periodic jobs.
JobsByPeriodic returns an iterator over all the periodic or non - periodic jobs .