Skip to content

Commit

Permalink
feat: log check complete
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Nov 21, 2024
1 parent b41fba5 commit bddeb5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/phoenix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,19 @@ async fn run_ops_monitors() -> Result<()> {
let mut run_lookback_updates_monitor_alarm = Alarm::new();

loop {
// We only check for failures up to this point, some outcomes may still hang in the balance
// for more recent slots.
let canonical_horizon = Utc::now() - Duration::minutes(APP_CONFIG.canonical_wait_minutes);
run_demotion_monitor(&relay_pool, &mev_pool).await?;
run_inclusion_monitor(&relay_pool, &mev_pool, &canonical_horizon, &loki_client).await?;
run_promotion_monitor(&relay_pool, &mev_pool, &canonical_horizon).await?;
run_auction_analysis_monitor(&mev_pool, &mut auction_analysis_alarm).await?;
run_header_delay_updates_monitor(&mev_pool, &mut header_delay_updates_alarm).await?;
run_lookback_updates_monitor(&mev_pool, &mut run_lookback_updates_monitor_alarm).await?;
info!(
%canonical_horizon,
"ops monitors completed, sleeping for 1 minute"
);
tokio::time::sleep(Duration::minutes(1).to_std().unwrap()).await;
}
}
Expand Down

0 comments on commit bddeb5e

Please sign in to comment.