You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/coordinator/tasks/run_task_options/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ The `run_task_options` task is designed to execute a single task with configurab
8
8
-**`task`**:\
9
9
The task to be executed. This is defined following the standard task definition format.
10
10
11
+
-**`propagateResult`**:\
12
+
This setting controls how the result of the child task influences the result of the `run_task_options` task. If set to `true`, any change in the result of the child task (success or failure) is immediately reflected in the result of the parent `run_task_options` task. If `false`, the child task's result is only propagated to the parent task after the child task has completed its execution.
13
+
11
14
-**`exitOnResult`**:\
12
15
If set to `true`, the task will cancel the child task as soon as it sets a result, whether it is "success" or "failure." This option is useful for scenarios where immediate response to the child task's result is necessary.
13
16
@@ -37,6 +40,7 @@ Default settings for the `run_task_options` task:
Copy file name to clipboardExpand all lines: pkg/coordinator/tasks/run_tasks/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
## `run_tasks` Task
2
2
3
3
### Description
4
-
The `run_tasks` task is designed for executing a series of tasks sequentially, ensuring each task is completed before starting the next. This setup is essential for tests requiring a specific orderof task execution.
4
+
The `run_tasks` task executes a series of specified tasks sequentially. This is particularly useful for scenarios where tasks need to be performed in a specific order, with the outcome of one potentially affecting the subsequent ones.
5
5
6
6
#### Task Behavior
7
7
- The task starts the child tasks one after the other in the order they are listed.
@@ -15,6 +15,9 @@ An important aspect of this task is that it cancels tasks once they return a res
15
15
-**`tasks`**:\
16
16
An array of tasks to be executed one after the other. Each task is defined according to the standard task structure.
17
17
18
+
-**`stopChildOnResult`**:\
19
+
If set to `true`, each child task in the sequence is stopped as soon as it sets a result (either "success" or "failure"). This ensures that once a task has reached a outcome, it does not continue to run unnecessarily, allowing the next task in the sequence to commence.
20
+
18
21
-**`expectFailure`**:\
19
22
If set to `true`, this option expects each task in the sequence to fail. The task sequence stops with a "failure" result if any task does not fail as expected.
20
23
@@ -29,6 +32,7 @@ Default settings for the `run_tasks` task:
0 commit comments