diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-27 10:18:40 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-27 09:30:55 +0000 |
| commit | 9a514c2f136aa42ebe9212c4ab1a526cfbe933c3 (patch) | |
| tree | e795a6fb0e5248724e68cc259e7374443238e437 /pkg/aflow/testdata/TestDoWhileMaxIters.trajectory.json | |
| parent | 43e1df1d9b982f24e3ccba50cf8881eed86d8994 (diff) | |
pkg/aflow: add explicit DoWhile.MaxIterations
Add DoWhile.MaxIterations and make it mandatory.
I think it's useful to make workflow implementer to think
explicitly about a reasonable cap on the number of iterations.
Diffstat (limited to 'pkg/aflow/testdata/TestDoWhileMaxIters.trajectory.json')
| -rw-r--r-- | pkg/aflow/testdata/TestDoWhileMaxIters.trajectory.json | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/pkg/aflow/testdata/TestDoWhileMaxIters.trajectory.json b/pkg/aflow/testdata/TestDoWhileMaxIters.trajectory.json new file mode 100644 index 000000000..35a2c0f7a --- /dev/null +++ b/pkg/aflow/testdata/TestDoWhileMaxIters.trajectory.json @@ -0,0 +1,133 @@ +[ + { + "Seq": 0, + "Nesting": 0, + "Type": "flow", + "Name": "test", + "Started": "0001-01-01T00:00:01Z" + }, + { + "Seq": 1, + "Nesting": 1, + "Type": "loop", + "Name": "", + "Started": "0001-01-01T00:00:02Z" + }, + { + "Seq": 2, + "Nesting": 2, + "Type": "iteration", + "Name": "0", + "Started": "0001-01-01T00:00:03Z" + }, + { + "Seq": 3, + "Nesting": 3, + "Type": "action", + "Name": "nop", + "Started": "0001-01-01T00:00:04Z" + }, + { + "Seq": 3, + "Nesting": 3, + "Type": "action", + "Name": "nop", + "Started": "0001-01-01T00:00:04Z", + "Finished": "0001-01-01T00:00:05Z", + "Results": { + "Error": "failed" + } + }, + { + "Seq": 2, + "Nesting": 2, + "Type": "iteration", + "Name": "0", + "Started": "0001-01-01T00:00:03Z", + "Finished": "0001-01-01T00:00:06Z" + }, + { + "Seq": 4, + "Nesting": 2, + "Type": "iteration", + "Name": "1", + "Started": "0001-01-01T00:00:07Z" + }, + { + "Seq": 5, + "Nesting": 3, + "Type": "action", + "Name": "nop", + "Started": "0001-01-01T00:00:08Z" + }, + { + "Seq": 5, + "Nesting": 3, + "Type": "action", + "Name": "nop", + "Started": "0001-01-01T00:00:08Z", + "Finished": "0001-01-01T00:00:09Z", + "Results": { + "Error": "failed" + } + }, + { + "Seq": 4, + "Nesting": 2, + "Type": "iteration", + "Name": "1", + "Started": "0001-01-01T00:00:07Z", + "Finished": "0001-01-01T00:00:10Z" + }, + { + "Seq": 6, + "Nesting": 2, + "Type": "iteration", + "Name": "2", + "Started": "0001-01-01T00:00:11Z" + }, + { + "Seq": 7, + "Nesting": 3, + "Type": "action", + "Name": "nop", + "Started": "0001-01-01T00:00:12Z" + }, + { + "Seq": 7, + "Nesting": 3, + "Type": "action", + "Name": "nop", + "Started": "0001-01-01T00:00:12Z", + "Finished": "0001-01-01T00:00:13Z", + "Results": { + "Error": "failed" + } + }, + { + "Seq": 6, + "Nesting": 2, + "Type": "iteration", + "Name": "2", + "Started": "0001-01-01T00:00:11Z", + "Finished": "0001-01-01T00:00:14Z" + }, + { + "Seq": 1, + "Nesting": 1, + "Type": "loop", + "Name": "", + "Started": "0001-01-01T00:00:02Z", + "Finished": "0001-01-01T00:00:15Z", + "Error": "DoWhile loop is going in cycles for 3 iterations" + }, + { + "Seq": 0, + "Nesting": 0, + "Type": "flow", + "Name": "test", + "Started": "0001-01-01T00:00:01Z", + "Finished": "0001-01-01T00:00:16Z", + "Error": "DoWhile loop is going in cycles for 3 iterations" + } +]
\ No newline at end of file |
