Azure / Azure/durabletask

External event discarded when the durable function is in Pending state

Aperta
#720 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
1.7k
Fork
335
Merge medio
2g 23h
PR unite (30g)
6

Descrizione

**Description**
After a long period of inactivity, if we start a new instance of the durable function the initial status is _OrchestrationRuntimeStatus.Pending_ and after 2 seconds the status is updated to _Running_.

If we send and external event to the durable function, invoking the _IDurableOrchestrationClient.RaiseEventAsync()_, while the status is Pending, sometimes the event is discarded!

**Expected behavior**
We expect that the event is not discarded while the status is pending.

**Actual behavior**
As from the application insights the event is dequeued and discarded because the instance of the durable function not exists ("No such instance") but it's not true.
![MicrosoftTeams-image](https://user-images.githubusercontent.com/48127230/166218980-98601f05-b1c3-42a1-841a-76df0a42246b.png).
After the RaiseEventAsync(), our application log a message with the status of the durable fuction that was _Pending_ (_"Orchestrator '0cbedce2-61b8-41fc-84bf-697d31b80a10' status:'Pending'."_) .

**App Details**
Durable Functions extension version: 2.6.0
Azure Functions runtime version: 4.0.1
Programming language used: .NET (C#)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia ispezionando il percorso degli eventi esterni utilizzato da IDurableOrchestrationClient.RaiseEventAsync() e il modo in cui gestisce le istanze in OrchestrationRuntimeStatus.Pending. Riproduci la temporizzazione descritta con Durable Functions extension 2.6.0 e Azure Functions runtime 4.0.1, quindi verifica che un evento generato durante Pending non venga rimosso dalla coda come "No such instance" e sia disponibile una volta che l'orchestrazione raggiunge Running.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, csharp
Ambito
backend, distributed-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.