Skip to content

Commit ae8d082

Browse files
committed
Graph node dev mode (#5982)
* node: Create a new binary for graph node dev mode * graph, store: Add unassign_subgraph method to SubgraphStore * node: Add helpers for graph node dev for subgraph management * node: Add helper functions for watching files in dev mode * node: Wire file watching in dev mode to redeploy subgraphs * node: fix formatting
1 parent 29db3a5 commit ae8d082

File tree

11 files changed

+599
-22
lines changed

11 files changed

+599
-22
lines changed

Cargo.lock

Lines changed: 117 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graph/src/components/store/traits.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ pub trait SubgraphStore: Send + Sync + 'static {
108108
node_id: &NodeId,
109109
) -> Result<(), StoreError>;
110110

111+
fn unassign_subgraph(&self, deployment: &DeploymentLocator) -> Result<(), StoreError>;
112+
111113
fn pause_subgraph(&self, deployment: &DeploymentLocator) -> Result<(), StoreError>;
112114

113115
fn resume_subgraph(&self, deployment: &DeploymentLocator) -> Result<(), StoreError>;

node/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ path = "src/main.rs"
1212
name = "graphman"
1313
path = "src/bin/manager.rs"
1414

15+
[[bin]]
16+
name = "gnd"
17+
path = "src/bin/dev.rs"
18+
1519
[dependencies]
1620
anyhow = { workspace = true }
1721
env_logger = "0.11.3"
@@ -40,3 +44,6 @@ termcolor = "1.4.1"
4044
diesel = { workspace = true }
4145
prometheus = { version = "0.13.4", features = ["push"] }
4246
json-structural-diff = { version = "0.2", features = ["colorize"] }
47+
pgtemp = { git = "https://github.com/incrypto32/pgtemp", branch = "initdb-args" }
48+
globset = "0.4.16"
49+
notify = "8.0.0"

0 commit comments

Comments
 (0)