func (s *StateStore) PeriodicLaunchByID(ws memdb.WatchSet, id string) (*structs.PeriodicLaunch, error) {
	txn := s.db.Txn(false)

	watchCh, existing, err := txn.FirstWatch("periodic_launch", "id", id)
	if err != nil {
		return nil, fmt.Errorf("periodic launch lookup failed: %v", err)
	}

	ws.Add(watchCh)

	if existing != nil {
		return existing.(*structs.PeriodicLaunch), nil
	}
	return nil, nil
}
// PeriodicLaunchByID is used to lookup a periodic launch by the periodic job
// ID.
PeriodicLaunchByID is used to lookup a periodic launch by the periodic job
ID.
// PeriodicLaunchByID is used to lookup a periodic launch by the periodic job // ID .
func (s *StateStore) PeriodicLaunchByID(ws memdb.WatchSet, id string) (*structs.PeriodicLaunch, error) {
	txn := s.db.Txn(false)
	watchCh, existing, err := txn.FirstWatch("periodic_launch", "id", id)
	if err != nil {
		return nil, fmt.Errorf("periodic launch lookup failed: %v", err)
	}
	ws.Add(watchCh)
	if existing != nil {
		return existing.(*structs.PeriodicLaunch), nil
	}
	return nil, nil
}
func ( s * StateStore ) PeriodicLaunchByID ( ws memdb . WatchSet , id string ) ( * structs . PeriodicLaunch , error ) { txn := s . db . Txn ( false ) watchCh , existing , err := txn . FirstWatch ( " " , " " , id ) if err != nil { return nil , fmt . Errorf ( " " , err ) } ws . Add ( watchCh ) if existing != nil { return existing . ( * structs . PeriodicLaunch ) , nil } return nil , nil }
PeriodicLaunchByID is used to lookup a periodic launch by the periodic job
ID.
PeriodicLaunchByID is used to lookup a periodic launch by the periodic job ID .