From cd89bd30ed7238c9abd1b9d3f056669c60445121 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Amiel Date: Tue, 18 Jun 2024 13:16:07 +0200 Subject: [PATCH] Update run cycle svg. --- docs/spec/runner/run_cycle.drawio | 240 ++++++++++++++++++++++++++++++ docs/spec/runner/run_cycle.md | 51 +------ docs/spec/runner/run_cycle.svg | 3 + 3 files changed, 245 insertions(+), 49 deletions(-) create mode 100644 docs/spec/runner/run_cycle.drawio create mode 100644 docs/spec/runner/run_cycle.svg diff --git a/docs/spec/runner/run_cycle.drawio b/docs/spec/runner/run_cycle.drawio new file mode 100644 index 000000000..cf506106a --- /dev/null +++ b/docs/spec/runner/run_cycle.drawio @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/spec/runner/run_cycle.md b/docs/spec/runner/run_cycle.md index 5f25637db..515223569 100644 --- a/docs/spec/runner/run_cycle.md +++ b/docs/spec/runner/run_cycle.md @@ -1,55 +1,8 @@ # Entry Run Cycle -The run cycle of an entry: explanation of `skip`, `delay`, `retry`, when captures and errors are computed etc... +The run cycle of an entry: explanation of `skip`, `delay`, `retry`, `repeat` when captures and errors are computed etc... -This is the current run loop. - -```mermaid -flowchart TB - start(["`**START**`"]) - succeed(["`**SUCCESS**`"]) - error(["`**ERROR**`"]) - has_entry{Entry\nto run?} - options[Eval\nentry options] - is_skip{Is skipped?} - inc_entry[Inc entry index] - is_delay{Is delayed?} - sleep_delay[Sleep delay] - run_http[Run\nHTTP requests] - eval_errors[Eval errors] - eval_captures[Eval captures] - has_errors{Has errors?} - is_retry{Is retried?} - retry_interval[Sleep retry interval] - - start --> has_entry - has_entry -. YES .-> options - has_entry -. NO .-> succeed - options --> is_skip - is_skip -. YES .-> inc_entry - is_skip -. NO .-> is_delay - inc_entry --> has_entry - is_delay -. YES .-> sleep_delay - is_delay -. NO .-> run_http - sleep_delay --> run_http - run_http --> eval_errors - eval_errors --> eval_captures - eval_captures --> has_errors - has_errors -. YES .-> is_retry - has_errors -. NO .-> inc_entry - is_retry -. YES ..-> retry_interval - is_retry -. NO .-> error - retry_interval --> has_entry +![logo](https://raw.githubusercontent.com/Orange-OpenSource/hurl/master/docs/spec/runner/run_cycle.svg) - style start fill:none,stroke:#333,stroke-width:3px - style succeed fill:none,stroke:#333,stroke-width:3px - style error fill:none,stroke:#333,stroke-width:3px - style has_entry fill:yellow,stroke:black - style is_skip fill:yellow,stroke:black - style is_delay fill:yellow,stroke:black - style has_errors fill:yellow,stroke:black - style is_retry fill:yellow,stroke:black -``` - diff --git a/docs/spec/runner/run_cycle.svg b/docs/spec/runner/run_cycle.svg new file mode 100644 index 000000000..04f14fef5 --- /dev/null +++ b/docs/spec/runner/run_cycle.svg @@ -0,0 +1,3 @@ + + +
START
START
Entry 
to run?
Entry...
Eval
entry options
Eval...
YES
YES
SUCCESS
SUCCESS
NO
NO
Skip?
Skip?
Delay?
Delay?
NO
NO
Sleep delay
Sleep delay
YES
YES
Run HTTP requests
Run HTTP requests
NO
NO
Eval errors
Eval errors
Eval captures
Eval captures
Errors?
Errors?
Increment
repeat index
Increment...
NO
NO
Sleep
retry interval
Sleep...
YES
YES
Retry?
Retry?
YES
YES
ERROR
ERROR
NO
NO
Repeat?
Repeat?
YES
YES
Increment
entry index
Increment...
NO
NO
\ No newline at end of file