mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-23 06:38:52 +01:00
Change panic to error so that one cron failure doesn't kill all cron jobs
This commit is contained in:
parent
dbd0e10985
commit
1c68b23790
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user