Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphman: disable load management when using graphman #5875

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions node/src/bin/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't want to add a boolean flag in LoadManager::new just for this, so just hardset the env var here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think that's fine for this.


let opt = Opt::parse();

Terminal::set_color_preference(&opt.color);
Expand Down
Loading