Question: Handle exception in RetryOptions
- Lingua principale
- C#
- Stelle
- 1.7k
- Fork
- 335
- Merge medio
- 2g 23h
- PR unite (30g)
- 6
Descrizione
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
}
};
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia leggendo il comportamento del callback Handle di RetryOptions e di TaskFailedException utilizzato da context.CreateRetryableClient e context.ScheduleWithRetry. L’issue non indica alcun file sorgente, test o modifica concreta prevista; per completarla sarebbe necessario concordare un modo per accedere all’eccezione sottostante e determinare se ritentare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100