Temper the latest Block importer.

pull/2/head
CJ Bryan and Matt Olenick 7 years ago
parent 003b27cc17
commit c3fe2130a5
  1. 2
      config/prod.exs

@ -48,7 +48,7 @@ config :ethereumex,
# Configure Quantum
config :explorer, Explorer.Scheduler,
jobs: [
[schedule: {:extended, "* * * * * *"}, task: {Explorer.Workers.ImportBlock, :perform_later, ["latest"]}],
[schedule: {:extended, "*/5 * * * * *"}, task: {Explorer.Workers.ImportBlock, :perform_later, ["latest"]}],
[schedule: {:extended, "* * * * * *"}, task: {Explorer.Workers.ImportBlock, :perform_later, ["pending"]}],
[schedule: {:extended, "*/15 * * * * *"}, task: {Explorer.Workers.ImportSkippedBlocks, :perform_later, [String.to_integer(System.get_env("EXPLORER_BACKFILL_CONCURRENCY") || "1")]}],
]

Loading…
Cancel
Save