Skip to content

Commit 4fcd82c

Browse files
committed
graphman: disable load management when using graphman
1 parent 5512b61 commit 4fcd82c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

node/src/bin/manager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use graph_store_postgres::{
3434
};
3535
use itertools::Itertools;
3636
use lazy_static::lazy_static;
37+
use std::env;
3738
use std::str::FromStr;
3839
use std::{collections::HashMap, num::ParseIntError, sync::Arc, time::Duration};
3940
const VERSION_LABEL_KEY: &str = "version";
@@ -1030,6 +1031,9 @@ impl Context {
10301031

10311032
#[tokio::main]
10321033
async fn main() -> anyhow::Result<()> {
1034+
// Disable load management for graphman commands
1035+
env::set_var("GRAPH_LOAD_THRESHOLD", "0");
1036+
10331037
let opt = Opt::parse();
10341038

10351039
Terminal::set_color_preference(&opt.color);

store/test-store/tests/chain/ethereum/manifest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ specVersion: 1.3.0
4949
const SOURCE_SUBGRAPH_SCHEMA: &str = "
5050
type TestEntity @entity { id: ID! }
5151
type User @entity { id: ID! }
52+
type ImmutableUser @entity { id: ID! }
5253
type Profile @entity { id: ID! }
5354
5455
type TokenData @entity(timeseries: true) {
@@ -1666,7 +1667,7 @@ dataSources:
16661667
/: /ipfs/Qmabi
16671668
handlers:
16681669
- handler: handleEntity
1669-
entity: User
1670+
entity: ImmutableUser
16701671
calls:
16711672
fake1: Factory[entity.address].get(entity.user)
16721673
fake3: Factory[0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF].get(entity.address)

0 commit comments

Comments
 (0)