func (s *StateStore) UpdateJobStability(index uint64, jobID string, jobVersion uint64, stable bool) error {
	txn := s.db.Txn(true)
	defer txn.Abort()

	if err := s.updateJobStabilityImpl(index, jobID, jobVersion, stable, txn); err != nil {
		return err
	}

	txn.Commit()
	return nil
}
// UpdateJobStability updates the stability of the given job and version to the
// desired status.
UpdateJobStability updates the stability of the given job and version to the
desired status.
// UpdateJobStability updates the stability of the given job and version to the // desired status .
func (s *StateStore) UpdateJobStability(index uint64, jobID string, jobVersion uint64, stable bool) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	if err := s.updateJobStabilityImpl(index, jobID, jobVersion, stable, txn); err != nil {
		return err
	}
	txn.Commit()
	return nil
}
func ( s * StateStore ) UpdateJobStability ( index uint64 , jobID string , jobVersion uint64 , stable bool ) error { txn := s . db . Txn ( true ) defer txn . Abort ( ) if err := s . updateJobStabilityImpl ( index , jobID , jobVersion , stable , txn ) ; err != nil { return err } txn . Commit ( ) return nil }
UpdateJobStability updates the stability of the given job and version to the
desired status.
UpdateJobStability updates the stability of the given job and version to the desired status .