fix: log and skip per-seed jikan failures in collaborative candidates

This commit is contained in:
2026-06-16 01:11:55 +02:00
committed by Milas Holsting
parent 12b72b227d
commit 641f97fb8e

View File

@@ -105,7 +105,14 @@ func (e engine) collectCollaborativeCandidates(ctx context.Context, seedPool []r
g.Go(func() error {
recs, err := e.jikan.GetAnimeRecommendations(ctx, seed.animeID)
if err != nil {
return err
observability.Warn(
"collaborative_recommendations_failed",
"anime",
"",
map[string]any{"seed_id": seed.animeID},
err,
)
return nil
}
for i, rec := range recs {
if i >= maxRecommendations {