an app.bsky.* indexer

give backfill Stop a minute to finish up

Changed files
+5 -2
cmd
backfiller
+1 -1
cmd/backfiller/cursors.go
···
)
type cursorRecord struct {
-
ID uint `gorm:"primaryKey"`
+
ID uint `gorm:"primaryKey"`
Key string `gorm:"unique"`
Val string
}
+4 -1
cmd/backfiller/main.go
···
sl.Error("failed to start scheduler", "err", err)
}
<-ctx.Done()
-
bf.Stop(context.TODO())
+
+
endctx, cancel := context.WithTimeout(ctx, time.Minute)
+
defer cancel()
+
bf.Stop(endctx)
}