fix: Handle DB unavailability by PolygonZkevm.TransactionBatch fetcher (#10031)

Co-authored-by: POA <33550681+poa@users.noreply.github.com>
docker-compose-changing-fe-port
varasev 7 months ago committed by GitHub
parent f5eb946ccf
commit 744bfdc8b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      apps/indexer/lib/indexer/fetcher/polygon_zkevm/transaction_batch.ex

@ -40,7 +40,8 @@ defmodule Indexer.Fetcher.PolygonZkevm.TransactionBatch do
chunk_size = config[:chunk_size]
recheck_interval = config[:recheck_interval]
Process.send(self(), :continue, [])
# two seconds pause needed to avoid exceeding Supervisor restart intensity when DB issues
Process.send_after(self(), :continue, 2000)
{:ok,
%{

Loading…
Cancel
Save