feat: add heartbeat log to worker when queue is empty
This commit is contained in:
@@ -48,6 +48,11 @@ func (w *Worker) syncRelations(ctx context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(animes) == 0 {
|
||||||
|
log.Println("worker: no new anime relations to sync at this time")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
for _, a := range animes {
|
for _, a := range animes {
|
||||||
log.Printf("worker: syncing relations for anime %d (%s)", a.ID, a.TitleOriginal)
|
log.Printf("worker: syncing relations for anime %d (%s)", a.ID, a.TitleOriginal)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user