-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make daemons working dir configurable #555
Make daemons working dir configurable #555
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this adding a breaking change or not for local machine ? I'm not sure 🤔
.ok_or_else(|| eyre::eyre!("canonicalized dataflow path has no parent"))? | ||
.to_owned(); | ||
pub async fn run_dataflow(dataflow_path: &Path, working_dir: PathBuf) -> eyre::Result<()> { | ||
// let working_dir = dataflow_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't leave commented code within the codebase.
@@ -2281,6 +2281,7 @@ name = "dora-coordinator" | |||
version = "0.3.4" | |||
dependencies = [ | |||
"ctrlc", | |||
"dirs 5.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still necessary?
This PR is for multiple-daemons:
path check. for a dataflow, if the number of machine > 1, skip all path exist check.
working_dir is configurable in cli, (the default value is "."), so the relative path is allowed again, like:
dora daemon --machine-id A --working-dir examples/rust-dataflow
for local and remote, the working_dir is default "." or specified, not the directory of dataflow.yml. so dora up are also changed, if there are some dataflow running in one daemon(maybe it is inconvenient I think)
dora up --working-dir examples/rust-dataflow
the dynamic node need directory same as dataflow(not sure), so there need more attention.
follow #535