Open mfateev opened 1 year ago
This filter/rule is not applied for Service errors. The same way for other SDKs. I don't think it's an expected behavior either. Users expect exception types in this filter to be applied to workflow code only pretty much. If we want to make deeper levels of failure tolerance adjustable - we need a separate, more detailed mechanism.
In addition, it's the Server that is failing the workflow task in this situation, not an SDK/Worker. When the workflow task is already failed by the Server, there is no way for SDK to fail the execution.
SDK can fail the execution by emitting FailWorkflowExecution command.
Expected Behavior
When
WorkflowImplementationOptions.FailWorkflowExceptionTypes
is set to Throwable any workflow task failure leads to workflow failure.Actual Behavior
The service rejecting workflow task completion doesn't fail the workflow.
Steps to Reproduce the Problem
Reproduction: