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.
11 lines
346 B
Python
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)
|