Skip to content

Commit d2f219f

Browse files
committed
ok
1 parent abbf7d0 commit d2f219f

14 files changed

Lines changed: 31 additions & 15 deletions

docs/EXAMPLES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ This example shows reading and writing to a STAN subject
311311
kubectl apply -f https://raw.githubusercontent.com/argoproj-labs/argo-dataflow/main/examples/301-stan-pipeline.yaml
312312
```
313313

314-
### [two-sinks](https://raw.githubusercontent.com/argoproj-labs/argo-dataflow/main/examples/301-two-sinks-pipeline.yaml)
314+
### [301-two-sinks](https://raw.githubusercontent.com/argoproj-labs/argo-dataflow/main/examples/301-two-sinks-pipeline.yaml)
315315

316316
This example has two sinks
317317

@@ -320,7 +320,7 @@ This example has two sinks
320320
kubectl apply -f https://raw.githubusercontent.com/argoproj-labs/argo-dataflow/main/examples/301-two-sinks-pipeline.yaml
321321
```
322322

323-
### [two-sources](https://raw.githubusercontent.com/argoproj-labs/argo-dataflow/main/examples/301-two-sources-pipeline.yaml)
323+
### [301-two-sources](https://raw.githubusercontent.com/argoproj-labs/argo-dataflow/main/examples/301-two-sources-pipeline.yaml)
324324

325325
This example has two sources
326326

dsls/python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def dump(self):
457457
y = {'subject': self._subject}
458458
if self._parallel:
459459
y['parallel'] = self._parallel
460-
x['stan'] = y
460+
x['stan'] = y
461461
return x
462462

463463

examples/101-two-node-pipeline.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ spec:
2424
- kafka:
2525
topic: output-topic
2626
sources:
27-
- {}
27+
- stan:
28+
subject: a-b

examples/102-flatten-expand-pipeline.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ spec:
2323
- stan:
2424
subject: flattened
2525
sources:
26-
- {}
26+
- stan:
27+
subject: data
2728
- expand: {}
2829
name: expand
2930
sinks:
3031
- log: {}
3132
sources:
32-
- {}
33+
- stan:
34+
subject: flattened

examples/108-container-pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
(pipeline("108-container")
55
.owner('argoproj-labs')
66
.describe("""This example showcases container options.""")
7+
.annotate('dataflow.argoproj.io/wait-for', 'Completed')
78
.step(
89
(container('main',
910
args=['sh', '-c', 'exit 0'],

examples/108-container-pipeline.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
annotations:
55
dataflow.argoproj.io/description: This example showcases container options.
66
dataflow.argoproj.io/owner: argoproj-labs
7+
dataflow.argoproj.io/wait-for: Completed
78
name: 108-container
89
spec:
910
steps:

examples/201-vetinary-pipeline.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,32 @@ spec:
3333
- stan:
3434
subject: cats
3535
sources:
36-
- {}
36+
- stan:
37+
subject: pets
3738
- map: |-
3839
json("Meow! " + object(msg).name)
3940
name: process-cats
4041
sinks:
4142
- kafka:
4243
topic: output-topic
4344
sources:
44-
- {}
45+
- stan:
46+
subject: cats
4547
- filter: |-
4648
string(msg) contains "dog"
4749
name: filter-dogs
4850
sinks:
4951
- stan:
5052
subject: dogs
5153
sources:
52-
- {}
54+
- stan:
55+
subject: pets
5356
- map: |-
5457
json("Woof! " + object(msg).name)
5558
name: process-dogs
5659
sinks:
5760
- kafka:
5861
topic: output-topic
5962
sources:
60-
- {}
63+
- stan:
64+
subject: dogs

examples/201-word-count-pipeline.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ spec:
5555
- stan:
5656
subject: words
5757
sources:
58-
- {}
58+
- stan:
59+
subject: lines
5960
- container:
6061
args:
6162
- bash
@@ -75,5 +76,6 @@ spec:
7576
- kafka:
7677
topic: output-topic
7778
sources:
78-
- {}
79+
- stan:
80+
subject: words
7981
terminator: true

examples/301-erroring-pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def handler(msg):
1212
(pipeline("301-erroring")
1313
.owner('argoproj-labs')
1414
.describe("""This example showcases retry policies.""")
15+
.annotate('dataflow.argoproj.io/wait-for', 'Errors')
1516
.step(
1617
(cron('*/3 * * * * *', retryPolicy='Always')
1718
.handler('always', handler=handler)

examples/301-erroring-pipeline.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
annotations:
55
dataflow.argoproj.io/description: This example showcases retry policies.
66
dataflow.argoproj.io/owner: argoproj-labs
7+
dataflow.argoproj.io/wait-for: Errors
78
name: 301-erroring
89
spec:
910
steps:

0 commit comments

Comments
 (0)