From c67d4c3bc0ba08dfe99150e97617e1355afea445 Mon Sep 17 00:00:00 2001 From: k1LoW Date: Tue, 17 Dec 2024 17:12:11 +0900 Subject: [PATCH] Update README --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf90a2d5..7042e8c8 100644 --- a/README.md +++ b/README.md @@ -652,7 +652,7 @@ steps: ### `steps[*].loop:` `steps..loop:` -Loop settings for steps. +Loop setting for step. #### Simple loop step @@ -711,6 +711,28 @@ steps: [...] ``` +### `steps[*].defer:` `steps..defer:` + +Deferring setting for step. + +```yaml +steps: + - + defer: true + req: + /cart/in: + post: + body: +[...] +``` + +The step marked defer behaves as follows. + +- If `defer: true` is set, run of the step is deferred until finish of the runbook. +- Steps marked with `defer` are always run even if the running of intermediate steps fails. +- If there are multiple steps marked with `defer`, they are run in LIFO order. + - Also, the included steps are added to run sequence of the parent runbook's deferred steps. + ## Variables to be stored runn can use variables and functions when running step.