graphman: disable load management when using graphman#5875
Conversation
| #[tokio::main] | ||
| async fn main() -> anyhow::Result<()> { | ||
| // Disable load management for graphman commands | ||
| env::set_var("GRAPH_LOAD_THRESHOLD", "0"); |
There was a problem hiding this comment.
didn't want to add a boolean flag in LoadManager::new just for this, so just hardset the env var here
There was a problem hiding this comment.
Yeah, I think that's fine for this.
2e4ef20 to
7f1ed00
Compare
lutter
left a comment
There was a problem hiding this comment.
Out of curiosity, how was the load manager interfering with graphman query?
| #[tokio::main] | ||
| async fn main() -> anyhow::Result<()> { | ||
| // Disable load management for graphman commands | ||
| env::set_var("GRAPH_LOAD_THRESHOLD", "0"); |
There was a problem hiding this comment.
Yeah, I think that's fine for this.
|
@lutter apologies for the late reply, i dont remember exactly what the case was but it happens only when running But graph-node loads its env vars on startup and dont care about it again. Let me know if its ok to keep it this way |
4fcd82c to
7f1ed00
Compare
7f1ed00 to
2e2872a
Compare
Closes #5850