pulumi/tests/integration/construct_component_slow/python/component.py
Justin Van Patten 394f79f27f
[sdk/nodejs] Fix construct to wait for RPC operations to complete (#6452)
This change fixes the provider implementation of `Construct` for multi-lang components written in Node.js to wait for any in-flight RPCs to finish before returning the results, s.t. all registered child resources are created.

In additional, invocations of `construct` are now serialized so that each call runs one after another, avoiding concurrent runs, since `construct` modifies global state. We'll follow-up with a more general concurrency fix to allow nested `construct` calls within the same provider.
2021-04-05 11:11:27 -07:00

11 lines
346 B
Python

# Copyright 2016-2021, Pulumi Corporation. All rights reserved.
from typing import Any, Optional
import pulumi
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions] = None):
props = dict()
super().__init__("testcomponent:index:Component", name, props, opts, True)