From a24052cb6cdfda7e9ee83d7863b3acc5537811bd Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 8 Apr 2026 15:08:25 +0200 Subject: [PATCH] feat: add heartbeat log to worker when queue is empty --- internal/worker/relations.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/worker/relations.go b/internal/worker/relations.go index c83cb9a..db1263e 100644 --- a/internal/worker/relations.go +++ b/internal/worker/relations.go @@ -48,6 +48,11 @@ func (w *Worker) syncRelations(ctx context.Context) { return } + if len(animes) == 0 { + log.Println("worker: no new anime relations to sync at this time") + return + } + for _, a := range animes { log.Printf("worker: syncing relations for anime %d (%s)", a.ID, a.TitleOriginal)