Skip to content

Commit 074596a

Browse files
committed
allow skipping of node definitions by setting them to null in the yaml file
1 parent 04f3765 commit 074596a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dora_utils/launch/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def run(cfg: DictConfig) -> None:
2929

3030
yaml_paths = []
3131
for node_cfg in cfg.node_definitions.values():
32+
# allow skipping of node definitions by setting to null when overriding configs
33+
if node_cfg is None:
34+
continue
35+
3236
node_name = f"tmp_{node_cfg.node_id}"
3337
yaml_path = write_tmp(node_cfg, tmp_dir, node_name)
3438
subprocess.Popen(f"python {Path(__file__).parent}/_launch_node.py -cp {tmp_dir} -cn {node_name}", shell=True)

0 commit comments

Comments
 (0)