pulumi/pkg/resource/provider
Fraser Waters 55be89e36a
Poll gRPC healthchecks to auto-cancel sub-processes (#9735)
* Poll gRPC healthchecks to auto-cancel sub-processes

This hooks the rpcutils cancellation to a polling process that asks for the health of the engine.

If the engine dies, the health check fails, rpcutil gets cancelled, sub-process quits.
This is hooked into both the langauge plugins, and the shared provider main method.

N.B. Providers started in "attach" mode do not poll the health check as it is expected that these processes we're explictly started by the user and the user will shut them down.

* Fix cancel usage

* Add to CHANGELOG

* if nil check not needed
2022-06-06 13:28:00 +01:00
..
component_provider.go Allow attaching to running providers (#8979) 2022-04-19 12:41:18 +01:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
host.go Turn off grpc info log in Provider (#7891) 2021-10-06 09:10:00 -07:00
main.go Poll gRPC healthchecks to auto-cancel sub-processes (#9735) 2022-06-06 13:28:00 +01:00