From 2e2872a2f75ed045ad196519923bb4142419b336 Mon Sep 17 00:00:00 2001 From: incrypto32 Date: Thu, 6 Mar 2025 17:16:50 +0400 Subject: [PATCH] graphman: disable load management when using graphman --- node/src/bin/manager.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/src/bin/manager.rs b/node/src/bin/manager.rs index 20cf93d94df..5142a2ab939 100644 --- a/node/src/bin/manager.rs +++ b/node/src/bin/manager.rs @@ -34,6 +34,7 @@ use graph_store_postgres::{ }; use itertools::Itertools; use lazy_static::lazy_static; +use std::env; use std::str::FromStr; use std::{collections::HashMap, num::ParseIntError, sync::Arc, time::Duration}; const VERSION_LABEL_KEY: &str = "version"; @@ -1030,6 +1031,9 @@ impl Context { #[tokio::main] async fn main() -> anyhow::Result<()> { + // Disable load management for graphman commands + env::set_var("GRAPH_LOAD_THRESHOLD", "0"); + let opt = Opt::parse(); Terminal::set_color_preference(&opt.color);