Skip to content

Commit

Permalink
Removing coordinator_addr for run_dataflow command
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Jan 19, 2024
1 parent eadf6b3 commit b79172c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
13 changes: 7 additions & 6 deletions binaries/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,14 @@ fn run() -> eyre::Result<()> {
match run_dataflow {
Some(dataflow_path) => {
tracing::info!("Starting dataflow `{}`", dataflow_path.display());
if let Some(coordinator_addr) = coordinator_addr {
tracing::info!(
"Not using coordinator addr {} as `run_dataflow` is for local dataflow only. Please use the `start` command for remote coordinator",
coordinator_addr
);
}

Daemon::run_dataflow(
&dataflow_path,
coordinator_addr,
machine_id.unwrap_or_default(),
)
.await
Daemon::run_dataflow(&dataflow_path).await
}
None => {
let addr = coordinator_addr.unwrap_or_else(|| {
Expand Down
10 changes: 3 additions & 7 deletions binaries/daemon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ impl Daemon {
.map(|_| ())
}

pub async fn run_dataflow(
dataflow_path: &Path,
coordinator_addr: Option<SocketAddr>,
machine_id: String,
) -> eyre::Result<()> {
pub async fn run_dataflow(dataflow_path: &Path) -> eyre::Result<()> {
let working_dir = dataflow_path
.canonicalize()
.context("failed to canoncialize dataflow path")?
Expand Down Expand Up @@ -160,8 +156,8 @@ impl Daemon {
});
let run_result = Self::run_general(
Box::pin(coordinator_events),
coordinator_addr,
machine_id,
None,
"".to_string(),
Some(exit_when_done),
clock,
);
Expand Down

0 comments on commit b79172c

Please sign in to comment.