logo
การพัฒนา
ค้นหา
Batch Processing

Batch Processing

The Batch Processing node can execute batch tasks. You can input an array to the batch processor, which will process each array item in parallel according to the logic defined within it, thereby significantly improving the execution efficiency of the workflow.

Both the input and output of the Batch Processing node are always of array type.

Input

image-20251216105653756

Only variables of array type are supported as input.

Multiple arrays can be defined as input, but when the batch processor executes, the number of processing iterations will only be based on the length of the shortest array.

For example, if the following arrays are input:

  • [1,2,3]
  • [1,2,3,4,5]

Then the batch processing will only execute 3 times.

Config

image-20251216105703713

  • Parallelism: Defines the number of parallel tasks for the batch processing job.
  • Batch Count: Defines the maximum number of iterations for the batch processing job.

Output

image-20251216105715704

You can select the output of each component within the batch processor as the output of the Batch Processing node. All defined outputs will be of array type.

Batch Processing Body

image-20251216105738667

In the node card, click on the batch processor area to open the canvas for the batch processor.

image-20251216105748905

Operations within this canvas are identical to those in the main workflow.

Within the batch processor, it is also necessary to ensure a closed-loop connection between the "Start" and "End" nodes.

  • Start: The Start node, by default, takes the array configured in the "Input" as its parameter.
  • End: Defines the termination of the batch processor's execution.