Change panic to error so that one cron failure doesn't kill all cron jobs

This commit is contained in:
David Dworken 2023-11-19 06:36:33 -08:00
parent dbd0e10985
commit 1c68b23790
No known key found for this signature in database

View File

@ -150,7 +150,7 @@ func runBackgroundJobs(ctx context.Context, srv *server.Server, db *database.DB,
for {
err := cron(ctx, db, stats)
if err != nil {
panic(fmt.Sprintf("Cron failure: %v", err))
fmt.Printf("Cron failure: %v", err)
}
srv.UpdateReleaseVersion(release.Version, release.BuildUpdateInfo(release.Version))
time.Sleep(10 * time.Minute)