Azure / Azure/durabletask

Write error if dupe task scheduled results are received

Aperta
#56 0 commenti 0 reazioni 1 assegnatario Rivendicata da @simonporter Vedi su GitHub
Lingua principale
C#
Stelle
1.7k
Fork
335
Merge medio
2g 23h
PR unite (30g)
6

Descrizione

This shouldn't be required if transactions and q2q transfer work properly, but recently we have seen a couple of instances where the responses have been duped. Need to add tracing if this arises:

```
public void HandleTaskCompletedEvent(TaskCompletedEvent completedEvent)
{
int taskId = completedEvent.TaskScheduledId;
if (openTasks.ContainsKey(taskId))
{
OpenTaskInfo info = openTasks[taskId];
info.Result.SetResult(completedEvent.Result);

openTasks.Remove(taskId);
}
```

// write event and in the else here. also do the same in other similar places in TaskOrchestrationContext
}

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.