AddManySafely is the same as AddMany, but it returns an error in the case of a validation problem or duplicate ID instead of panicking.
(periodicJobs []*PeriodicJob)
| 165 | // AddManySafely is the same as AddMany, but it returns an error in the case of |
| 166 | // a validation problem or duplicate ID instead of panicking. |
| 167 | func (b *PeriodicJobBundle) AddManySafely(periodicJobs []*PeriodicJob) ([]rivertype.PeriodicJobHandle, error) { |
| 168 | return b.periodicJobEnqueuer.AddManySafely(sliceutil.Map(periodicJobs, b.mapper.toInternal)) |
| 169 | } |
| 170 | |
| 171 | // Clear clears all periodic jobs, cancelling all scheduled runs. |
| 172 | // |