Remove workspace-root configuration and use client run directories
This commit is contained in:
+1
-2
@@ -149,8 +149,7 @@ def supervise(config):
|
||||
env.pop("PIPELINES_NTFY_TOKEN", None)
|
||||
with (root / "logs/server.log").open("a") as log:
|
||||
child = subprocess.Popen([str(root / "bin/pipelines-server"), "-addr",
|
||||
f"127.0.0.1:{config['server_port']}", "-db", str(root / "data/pipelines.db"),
|
||||
*sum((["-workspace-root", path] for path in config["workspace_roots"]), [])],
|
||||
f"127.0.0.1:{config['server_port']}", "-db", str(root / "data/pipelines.db")],
|
||||
cwd=config["workspace"], env=env, stdout=log, stderr=log)
|
||||
while child.poll() is None and not stopped:
|
||||
time.sleep(0.25)
|
||||
|
||||
Reference in New Issue
Block a user