Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle NextRetryDelay option in workflow failures (#5946)
Workflows can now return an application error with NextRetryDelay option to customize when the workflow will be retried again. ``` return temporal.NewApplicationError( "some retryable error", "SomeType", temporal.ApplicationErrorOptions{NextRetryDelay: 2 * time.Minute}, ) ``` Currently Activity tasks can customize the next retry time. This is bringing the same feature to workflow tasks as well. Added unit tests. Also added a test to assert next retry delay customization in activities. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> No
- Loading branch information