Skip to content

Commit

Permalink
Add fix for auto jobs finish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey committed Oct 1, 2024
1 parent 3f30502 commit bf62d53
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions synchronizer/synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,18 @@ func (d *Synchronizer) HistoricalSyncRef(customerDbUriFlag string, addresses []s
d.startBlock = d.endBlock - 1

if isCycleFinished || d.startBlock == 0 {
if autoJobs {
for address, abisInfo := range addressesAbisInfo {

log.Printf("Finished crawling for address %s at block %d\n", address, abisInfo.DeployedBlockNumber)

// update the status of the address for the customer to done
err := indexer.DBConnection.UpdateAbisAsDone(abisInfo.IDs)
if err != nil {
return err
}
}
}
log.Println("Finished processing all customer updates")
break
}
Expand Down

0 comments on commit bf62d53

Please sign in to comment.