Disable catchup indexer by env

pull/8795/head
Qwerty5Uiop 1 year ago
parent 1e832d995c
commit fbbf53cd52
  1. 2
      CHANGELOG.md
  2. 6
      apps/indexer/lib/indexer/supervisor.ex
  3. 2
      config/runtime.exs
  4. 1
      docker-compose/envs/common-blockscout.env

@ -4,6 +4,8 @@
### Features
- [#8795](https://github.com/blockscout/blockscout/pull/8795) - Disable catchup indexer by env
### Fixes
- [#8765](https://github.com/blockscout/blockscout/pull/8765) - Fix for tvl update in market history when row already exists

@ -157,11 +157,13 @@ defmodule Indexer.Supervisor do
%{block_fetcher: realtime_block_fetcher, subscribe_named_arguments: realtime_subscribe_named_arguments},
[name: BlockRealtime.Supervisor]
]),
{BlockCatchup.Supervisor,
configure(
BlockCatchup.Supervisor,
[
%{block_fetcher: block_fetcher, block_interval: block_interval, memory_monitor: memory_monitor},
[name: BlockCatchup.Supervisor]
]},
]
),
{Withdrawal.Supervisor, [[json_rpc_named_arguments: json_rpc_named_arguments]]}
]
|> List.flatten()

@ -525,6 +525,8 @@ config :indexer, Indexer.Fetcher.EmptyBlocksSanitizer.Supervisor,
config :indexer, Indexer.Block.Realtime.Supervisor,
enabled: !ConfigHelper.parse_bool_env_var("DISABLE_REALTIME_INDEXER")
config :indexer, Indexer.Block.Catchup.Supervisor, enabled: !ConfigHelper.parse_bool_env_var("DISABLE_CATCHUP_INDEXER")
config :indexer, Indexer.Fetcher.TokenInstance.Realtime.Supervisor,
disabled?: ConfigHelper.parse_bool_env_var("INDEXER_DISABLE_TOKEN_INSTANCE_REALTIME_FETCHER")

@ -99,6 +99,7 @@ API_V1_READ_METHODS_DISABLED=false
API_V1_WRITE_METHODS_DISABLED=false
DISABLE_INDEXER=false
DISABLE_REALTIME_INDEXER=false
DISABLE_CATCHUP_INDEXER=false
INDEXER_DISABLE_TOKEN_INSTANCE_REALTIME_FETCHER=false
INDEXER_DISABLE_TOKEN_INSTANCE_RETRY_FETCHER=false
INDEXER_DISABLE_TOKEN_INSTANCE_SANITIZE_FETCHER=false

Loading…
Cancel
Save