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/plugins/builtin/batch/README.md
+6-5
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
# `batch` Plugin
2
2
3
-
This plugin creates a batch of tasks based on the same template and waits for it to complete. It acts like the `subtask` combined with a `foreach`, but doesn't modify the resolution by adding new steps dynamically. As it makes less calls to the underlying database, this plugin is suited for large batches of tasks, where the `subtask` / `foreach` combination would usually struggle, escpecially by bloating the database.
4
-
Tasks belonging to the same batch share a common `BatchID` as well as tag holding their parent's ID.
3
+
This plugin creates a batch of tasks based on the same template and waits for it to complete. It acts like the `subtask` combined with a `foreach`, but doesn't modify the resolution by adding new steps dynamically. As it makes less calls to the underlying database, this plugin is suited for large batches of tasks, where the `subtask` / `foreach` combination would usually struggle, especially by bloating the database.
4
+
Tasks belonging to the same batch share a common `BatchID` as well as a tag holding their parent's ID.
5
5
6
6
##### Remarks:
7
+
Like the subtask plugin, it's unadvised to have a step based on the batch plugin running alongside other steps in a template. If these other steps take time to return a result, the batch plugin may miss the wake up call from its children tasks.
7
8
The output of child tasks is not made available in this plugin's output. This feature will come later.
8
9
9
10
## Configuration
@@ -16,7 +17,7 @@ The output of child tasks is not made available in this plugin's output. This fe
16
17
|`common_inputs`| a map of named values, as accepted on µTask's API, given to all task in the batch by combining it with each input |
17
18
|`common_json_inputs`| same as `common_inputs` but as a JSON string. If specified, it overrides `common_inputs`|
18
19
|`tags`| a map of named strings added as tags when creating child tasks |
19
-
|`sub_batch_size`| the number tasks to create and run at once. `0` for infinity (i.e.: all tasks are created at once and waited for) (default). Higher values reduce the amount of calls made to the database, but increase sensitivity to database unavailability (if a task creation fails, the whole sub batch must be created again) |
20
+
|`sub_batch_size`| the number tasks to create and run at once, as a string. `0` for infinity (i.e.: all tasks are created at once and waited for) (default). Higher values reduce the amount of calls made to the database, but increase sensitivity to database unavailability (if a task creation fails, the whole sub batch must be created again) |
20
21
|`comment`| a string set as `comment` when creating child tasks |
21
22
|`resolver_usernames`| a string containing a JSON array of additional resolver users for child tasks |
22
23
|`resolver_groups`| a string containing a JSON array of additional resolver groups for child tasks |
@@ -33,7 +34,7 @@ action:
33
34
configuration:
34
35
# [Required]
35
36
# A template that must already be registered on this instance of µTask
36
-
template: some-task-template
37
+
template_name: some-task-template
37
38
# Valid inputs, as defined by the referred template, here requiring 3 inputs: foo, otherFoo and fooCommon
38
39
inputs:
39
40
- foo: bar-1
@@ -50,7 +51,7 @@ action:
50
51
fooTag: value-of-foo-tag
51
52
barTag: value-of-bar-tag
52
53
# The amount of tasks to run at once
53
-
sub_batch_size: 2
54
+
sub_batch_size: "2"
54
55
# A list of users which are authorized to resolve this specific task
0 commit comments