pulumi/pkg/backend/httpstate
Justin Van Patten fb7400507a [auto] Fix hangs for remote previews
Retrieving engine events programmatically through automation api would result in the operation seemingly hanging for remote operations. This was particularly noticeable during remote previews, because preview in automation API programmatically inspects engine events to look for the summary event (which it doesn't do for up/refresh/destroy).

The problem is due to the lack of a terminating `CancelEvent`. Normally, for local operations, the event stream is always terminated by a `CancelEvent` which is the sentinel value used to indicate the operation is complete. However, when sending events to the service, the `CancelEvent` is not sent. So when we're retrieving events from the service for a remote operation, we weren't getting back a `CancelEvent`.

The fix is to send a synthesized `CancelEvent` after all the events have been read from the service (similar to what is done by the `pulumi replay-events` hidden debug command).
2022-10-28 10:33:43 -07:00
..
client [cli] Experimental support for remote operations 2022-10-27 16:15:59 -07:00
backend.go [auto] Fix hangs for remote previews 2022-10-28 10:33:43 -07:00
backend_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
console.go Add support for a PULUMI_CONSOLE_DOMAIN env var (#4410) 2020-04-17 11:50:00 -07:00
console_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
crypto.go Assume configFile is non-empty 2022-10-07 14:03:20 +02:00
crypto_test.go Move default secret manager to stack (#10423) 2022-08-18 15:31:34 +01:00
diffs.go Support PULUMI_OPTIMIZED_CHECKPOINT_PATCH protocol 2022-10-12 12:29:05 -04:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
marshal.go Support PULUMI_OPTIMIZED_CHECKPOINT_PATCH protocol 2022-10-12 12:29:05 -04:00
policypack.go Respond to SIGINT during plugin install (#9793) 2022-06-09 14:57:56 -07:00
snapshot.go Support PULUMI_OPTIMIZED_CHECKPOINT_PATCH protocol 2022-10-12 12:29:05 -04:00
snapshot_test.go Support PULUMI_OPTIMIZED_CHECKPOINT_PATCH protocol 2022-10-12 12:29:05 -04:00
stack.go Move default secret manager to stack (#10423) 2022-08-18 15:31:34 +01:00
state.go Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00
token_source.go Support PULUMI_OPTIMIZED_CHECKPOINT_PATCH protocol 2022-10-12 12:29:05 -04:00
token_source_test.go Disable token_source_test on windows (#10557) 2022-09-01 01:30:52 +02:00