From 37d3fd772add923bd8c5b059d8626e087cd2d768 Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Tue, 15 Dec 2020 09:41:04 +0000 Subject: [PATCH] fix: don't restart a walk if it fails (#320) --- commands/walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/walk.go b/commands/walk.go index 945417fa2..42b2b5ed3 100644 --- a/commands/walk.go +++ b/commands/walk.go @@ -117,7 +117,7 @@ func walk(cctx *cli.Context) error { scheduler.Add(schedule.TaskConfig{ Name: "ChainHistoryIndexer", Task: indexer.NewChainHistoryIndexer(tsIndexer, lensOpener, heightFrom, heightTo), - RestartOnFailure: true, + RestartOnFailure: false, // Don't restart after a failure otherwise the walk will start from the beginning again RestartOnCompletion: false, RestartDelay: time.Minute, })