-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipelines with Cycles: e2e testing, and pipeline validation (#920)
Signed-off-by: Julie Vogelman <[email protected]>
- Loading branch information
Showing
8 changed files
with
618 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/function/examples/retry | ||
# (a more realistic example might retry only on failure) | ||
image: quay.io/numaio/numaflow-go/map-retry:latest | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: numaflow.numaproj.io/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
name: cycle-to-self | ||
spec: | ||
vertices: | ||
- name: in | ||
source: | ||
http: {} | ||
- 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/function/examples/retry | ||
# (a more realistic example might retry only on failure) | ||
image: quay.io/numaio/numaflow-go/map-retry:latest | ||
- name: out | ||
scale: | ||
min: 1 | ||
sink: | ||
log: {} | ||
edges: | ||
- from: in | ||
to: retry | ||
- from: retry | ||
to: retry | ||
conditions: | ||
tags: | ||
values: | ||
- retry | ||
- from: retry | ||
to: out | ||
conditions: | ||
tags: | ||
operator: not | ||
values: | ||
- retry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.