Browse Source

Fix wrong error message and wrong python spawning options

tags/v0.3.12-rc0
haixuantao 7 months ago
parent
commit
2456e934ba
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      binaries/daemon/src/spawn.rs

+ 7
- 4
binaries/daemon/src/spawn.rs View File

@@ -269,7 +269,7 @@ pub async fn spawn_node(
"-n",
conda_env,
"python",
"-c",
"-uc",
format!("import dora; dora.start_runtime() # {}", node.id).as_str(),
]);
command
@@ -295,7 +295,7 @@ pub async fn spawn_node(
};
// Force python to always flush stdout/stderr buffer
cmd.args([
"-c",
"-uc",
format!("import dora; dora.start_runtime() # {}", node.id).as_str(),
]);
cmd
@@ -323,7 +323,7 @@ pub async fn spawn_node(
);

cmd.args([
"-c",
"-uc",
format!("import dora; dora.start_runtime() # {}", node.id).as_str(),
]);
cmd
@@ -336,7 +336,10 @@ pub async fn spawn_node(
cmd
}
} else {
bail!("Could not figure out dora installation. Could you try to reinstall dora or run it with `dora` command?");
bail!(
"Cannot spawn runtime with both Python and non-Python operators. \
Please use a single operator or ensure that all operators are Python-based."
);
};

command.current_dir(working_dir);


Loading…
Cancel
Save