forked from numaproj/numaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
10-cycle-to-prev.yaml
45 lines (45 loc) · 1.06 KB
/
10-cycle-to-prev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: cycle-to-prev
spec:
vertices:
- name: in
source:
http: {}
- name: cat
udf:
builtin:
name: cat
- name: retry
scale:
min: 1
disabled: true # don't scale this beyond one Pod since it doesn't make sense for this particular container, which uses in-memory storage
udf:
container:
# This will try each message up to 3 times before continuing, see https://github.com/numaproj/numaflow-go/tree/main/pkg/mapper/examples/retry
# (a more realistic example might retry only on failure)
image: quay.io/numaio/numaflow-go/map-retry:stable
- name: out
scale:
min: 1
sink:
log: {}
edges:
- from: in
to: cat
- from: cat
to: retry
- from: retry
to: cat
conditions:
tags:
values:
- retry
- from: retry
to: out
conditions:
tags:
operator: not
values:
- retry