Azure / Azure/durabletask

Question: Handle exception in RetryOptions

Open
#436 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.7k
Forks
335
Avg merge
2d 23h
Merged PRs (30d)
6

Description

When using the "context.CreateRetryableClient" or the "context.ScheduleWithRetry", we can't get the real exception in TaskActivity. How can we determine retry or not in handle function?

```
public readonly RetryOptions retryOptions = new RetryOptions(TimeSpan.FromSeconds(3), 3)
{
BackoffCoefficient = 1,
MaxRetryInterval = TimeSpan.FromMinutes(5),
Handle = (e) =>
{
// e is TaskFailedException without innerexception info

}
};
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.