# See the License for the specific language governing permissions and
# limitations under the License.
+import asyncio
+
from osm_common.dataclasses.temporal_dataclasses import (
GetVnfRecordIdsInput,
GetVnfRecordIdsOutput,
retry_policy=LcmOperationWorkflow.no_retry_policy,
),
)
-
- for vnfr_uuid in vnf_record_ids_output.vnfr_ids:
- await workflow.execute_child_workflow(
- workflow=WORKFLOW_VNF_INSTANTIATE,
- arg=VnfInstantiateInput(vnfr_uuid=vnfr_uuid, model_name=model_name),
- id=f"{WORKFLOW_VNF_INSTANTIATE}-{vnfr_uuid}",
+ await asyncio.gather(
+ *(
+ workflow.execute_child_workflow(
+ workflow=WORKFLOW_VNF_INSTANTIATE,
+ arg=VnfInstantiateInput(
+ vnfr_uuid=vnfr_uuid, model_name=model_name
+ ),
+ id=f"{WORKFLOW_VNF_INSTANTIATE}-{vnfr_uuid}",
+ )
+ for vnfr_uuid in vnf_record_ids_output.vnfr_ids
)
+ )
except ActivityError as e:
await self.update_ns_state(ns_uuid, NsState.INSTANTIATED, e.cause.message)