Add MonitorAlbum component tests: 21 cases covering all flow diagrams (bufconn + testcontainers + hand-rolled mocks)
This commit is contained in:
@@ -106,6 +106,10 @@ func (w *PollDownloadWorker) onCompleted(ctx context.Context, args PollDownloadA
|
||||
}
|
||||
|
||||
func (w *PollDownloadWorker) reschedule(ctx context.Context, args PollDownloadArgs) error {
|
||||
if w.RiverClient == nil {
|
||||
log.Warn().Str("download_id", args.DownloadID).Msg("no river client, cannot reschedule poll_download")
|
||||
return nil
|
||||
}
|
||||
_, err := w.RiverClient.Insert(ctx, args, &river.InsertOpts{
|
||||
ScheduledAt: time.Now().Add(args.CheckInterval),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user