Commit Graph

3 Commits

Author SHA1 Message Date
Kyle Dixler b535bcff23
Suppress grpc rejections due to the resource monitor terminating
A failed update can lead to an unavailable resource monitor creating an
uncaught rejected promise which makes Automation API exit prematurely
since the exception was uncatchable. Prints the error message to stderr
only once to avoid spamming the user.

Fixes 
Fixes 
2023-06-14 14:43:32 -07:00
Luke Hoban f7397bb798
[sdk/nodejs] Skip re-registrations of same package+version ()
It is possible for the same version of the same provider SDK to be loaded multiple times in Node.js.  In this case, we might legitimately get mutliple registrations of the same resource.  It should not matter which we use, so we can just skip re-registering.  De-serialized resources will always be instances of classes from the first registered package.

Example layout this addresses.  Registrations of resources in `package3` at the same verrsion.

`node_modules`
  `@pulumi/pulumi`
  `package1`
    `node_modules`
      `package3`
  `package2`
    `node_modules`
      `package3`

Fixes .
2021-02-20 10:06:32 +11:00
Justin Van Patten edc79325fe
Add support for getResource to Node.js SDK ()
And update Node's resource ref deserialization to match Python.

Also, fixed a bug in Python resource ref deserialization that I noticed.
2020-12-01 10:58:15 -08:00