You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure_=new(){Message=$"Failed building completion: {e}"},
},
},
};
}
we have an extra catch if something happened that even the other catches couldn't catch (such as a failure while processing a failure), but we are not logging nor are we setting the task token. Make sure we do both and add test coverage to try and reach this code (i.e. try to fail while processing a failure).
The text was updated successfully, but these errors were encountered:
This seems to occur on context cancel failing. To replicate the swallowing of this, try to do something like ActivityExecutionContext.Current.CancellationToken.Register(() => throw new InvalidOperationException("intentional failure")). The fix of course is to log the exception here and make sure the task token is set on this.
cretz
added a commit
to cretz/temporal-sdk-dotnet
that referenced
this issue
Oct 8, 2024
Describe the bug
In
sdk-dotnet/src/Temporalio/Worker/ActivityWorker.cs
Lines 222 to 234 in 5141c2c
The text was updated successfully, but these errors were encountered: