Closed gow closed 1 week ago
Is this only for handling the failure of the first attempt of the workflow task?
No. It's meant to handle failure with NextRetryDelay in any attempt of the workflow task. What gave you the impression that it's applied only to the first attempt?
Is this only for handling the failure of the first attempt of the workflow task?
No. It's meant to handle failure with NextRetryDelay in any attempt of the workflow task. What gave you the impression that it's applied only to the first attempt?
Synced offline. The confusion was me calling it "workflow task" which is a different construct than the workflow code (or simply workflow). This change works as intended for the workflows where it can return an application error to customize its next retry delay.
What changed?
Workflows can now return an application error with NextRetryDelay option to customize when the workflow will be retried again.
Why?
Currently Activity tasks can customize the next retry time. This is bringing the same feature to workflow tasks as well.
How did you test it?
Added unit tests. Also added a test to assert next retry delay customization in activities.
Potential risks
Documentation
Is hotfix candidate?
No