Skip to content

Commit

Permalink
fix: don't restart a walk if it fails (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
iand committed Dec 15, 2020
1 parent 96fae29 commit 37d3fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit 37d3fd7

Please sign in to comment.