Skip to content

Commit 8456b93

Browse files
fix: update accumulator example (#201)
Signed-off-by: srao12 <[email protected]>
1 parent 2d2bc6e commit 8456b93

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pkg/accumulator/examples/streamsorter/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ Port-forward the HTTP endpoint, and make POST requests using curl. Remember to r
1818
kubectl port-forward stream-sorter-http-one-0-xxxx 8444:8443
1919

2020
# Post data to the HTTP endpoint
21-
curl -kq -X POST -d "101" https://localhost:8444/vertices/http-one -h "X-Numaflow-Event-Time: 60000"
22-
curl -kq -X POST -d "102" https://localhost:8444/vertices/http-one -h "X-Numaflow-Event-Time: 61000"
23-
curl -kq -X POST -d "103" https://localhost:8444/vertices/http-one -h "X-Numaflow-Event-Time: 62000"
24-
curl -kq -X POST -d "104" https://localhost:8444/vertices/http-one -h "X-Numaflow-Event-Time: 63000"
21+
curl -kq -X POST -d "101" https://localhost:8444/vertices/http-one -H "X-Numaflow-Event-Time: 60000"
22+
curl -kq -X POST -d "102" https://localhost:8444/vertices/http-one -H "X-Numaflow-Event-Time: 61000"
23+
curl -kq -X POST -d "103" https://localhost:8444/vertices/http-one -H "X-Numaflow-Event-Time: 62000"
24+
curl -kq -X POST -d "104" https://localhost:8444/vertices/http-one -H "X-Numaflow-Event-Time: 63000"
2525
```
2626

2727
```shell
2828
kubectl port-forward stream-sorter-http-two-0-xxxx 8445:8443
2929

3030
# Post data to the HTTP endpoint
31-
curl -kq -X POST -d "105" https://localhost:8445/vertices/http-two -h "X-Numaflow-Event-Time: 70000"
32-
curl -kq -X POST -d "106" https://localhost:8445/vertices/http-two -h "X-Numaflow-Event-Time: 71000"
33-
curl -kq -X POST -d "107" https://localhost:8445/vertices/http-two -h "X-Numaflow-Event-Time: 72000"
34-
curl -kq -X POST -d "108" https://localhost:8445/vertices/http-two -h "X-Numaflow-Event-Time: 73000"
31+
curl -kq -X POST -d "105" https://localhost:8445/vertices/http-two -H "X-Numaflow-Event-Time: 70000"
32+
curl -kq -X POST -d "106" https://localhost:8445/vertices/http-two -H "X-Numaflow-Event-Time: 71000"
33+
curl -kq -X POST -d "107" https://localhost:8445/vertices/http-two -H "X-Numaflow-Event-Time: 72000"
34+
curl -kq -X POST -d "108" https://localhost:8445/vertices/http-two -H "X-Numaflow-Event-Time: 73000"
3535
```
3636

3737
### Verify the output

pkg/accumulator/examples/streamsorter/manifest/stream-sorter-pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
groupBy:
2626
window:
2727
accumulator:
28-
ttl: 10s
28+
timeout: 10s
2929
keyed: true
3030
storage:
3131
persistentVolumeClaim:

0 commit comments

Comments
 (0)