pulumi / pulumi-dotnet

.NET support for Pulumi
Apache License 2.0
28 stars 25 forks source link

Fix program hanging when a resource transformation throws an exception #307

Closed Zaid-Ajaj closed 4 months ago

Zaid-Ajaj commented 4 months ago

Fixes #291 Fixes #174 (duplicate of the former)

The problem is that the task that is created for logging the exception never resolves. Simplified to use Task.Run(...) without Task.ContinueWith(...) and added an integration test to verify that a failing transformation actually exits the program without hanging.