Browse Source

Use `cargo run` in dataflow

Use `cargo run` instead of the path of the binary in the
dataflow as recommended way of using `run:` as it is:

   -OS agnostic
   -Compile node before being run which avoids the risk of missing development changes
   -More readable
tags/v0.0.0-test.4
haixuanTao Xavier Tao 3 years ago
parent
commit
a2f737bf25
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      coordinator/examples/mini-dataflow.yml

+ 4
- 4
coordinator/examples/mini-dataflow.yml View File

@@ -5,13 +5,13 @@ communication:
nodes:
- id: timer
custom:
run: ../target/release/examples/example_source_timer
run: cargo run --release --example example_source_timer
outputs:
- time

- id: rate-limited-timer
custom:
run: ../target/release/examples/rate_limit --seconds 0.5
run: cargo run --release --example rate_limit -- --seconds 0.5
inputs:
data: timer/time
outputs:
@@ -19,7 +19,7 @@ nodes:

- id: random
custom:
run: ../target/release/examples/random_number
run: cargo run --release --example random_number
inputs:
timestamp: rate-limited-timer/rate_limited
outputs:
@@ -27,7 +27,7 @@ nodes:

- id: logger
custom:
run: ../target/release/examples/example_sink_logger
run: cargo run --release --example example_sink_logger
inputs:
random: random/number
time: timer/time


Loading…
Cancel
Save