AOS.Batch
Element Description
The AOS.Batch element is a batch processing object. It is used to create and deploy jobs in batches. By defining contained sub-objects and the number of batch processing times, the AOS.Batch element implements the batch processing function. The AOS.Batch element considers that the execution succeeds only after all the batch operations of the included objects are complete. Currently, the AOS.Batch element supports the following sub-objects: CCE.Job, CCE.Deployment, and AOS.Stack.
Element Properties
Property |
Required |
Descripiton |
---|---|---|
items |
Yes |
Contained sub-element template Type: AOS.BatchItem Array Value Description: Supports customization. Value Constraint: Array format. A template contains 1 to 10 objects. Suggestion: Customize the value. For details, visit https://support.huaweicloud.com/eu/tr-aos/datatypes-aos-batchitem.html. |
step |
No |
Maximum concurrency value Type: integer Value Description: By default, the step is not defined. That is, objects are created in batches based on the maximum concurrency value. If the step is specified, objects are executed in batches by phase. For example, a batch object contains one job and the step is 5. In this scenario, job6 will be executed only after job1 is completed. Suggestion: Set the value based on specifications and requirements. |
values |
No |
Variable used in the sub-element template Type: dict Value Description: Supports customization. When a batch object is instantiated, the values are replaced with the variables of properties defined in items, including the built-in variables item, limit, and offset. Default: {} Suggestion: Set the value based on specifications and requirements. |
limit |
Yes |
Total number of jobs that are executed in batches Type: integer Value Description: Supports customization. The value ranges from 1 to 500. Suggestion: Set the value based on specifications and requirements. |
Relationships Between Elements
Description |
Target |
---|---|
ConsistsOf |
|
ConsistsOf |
|
ConsistsOf |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
Return Value
None.
Blueprint Example
tosca_definitions_version: huaweicloud_tosca_version_1_0 inputs: sample_list: # Sample directory name. default: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z type: string one_wgs_tpid: description: ID of a single sample processing template. sleep_time: default: 120 label: wgs node_templates: sample: # Single sample processing. type: HuaweiCloud.AOS.Stack properties: templateId: {get_input: one_wgs_tpid} inputs: sleep_time: {get_input: sleep_time} sample-all: # Performs batch operations on sample1. type: HuaweiCloud.AOS.Batch properties: limit: {get_list_length: {split: [',', {get_input: sample_list}]}} # Number of batch operations. step: 10 items: - element: sample # Performs batch operations on each sample. values: # Divide the samples into arrays and obtain array elements. sample_name_list: {split: [',', {get_input: sample_list}]} properties: | templateId: {get_input: one_wgs_tpid} inputs: sleep_time: {get_input: sleep_time} requirements: - item: node: sample
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.