-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I was able to run the code and jobs are created and completed properly but I never receive the event.
For example, the "durable-function-event-raiser" task in the job "08edbf0951cb4c5189f866ecaa72006e_Tokio" is created with this command:
powershell -Command "&{$done=@{ done=1 }; $json=$done | ConvertTo-Json; Invoke-WebRequest -ContentType 'application/json' -Uri https://*******.azurewebsites.net/runtime/webhooks/durabletask/instances/08edbf0951cb4c5189f866ecaa72006e/raiseEvent/batchjob-finished-08edbf0951cb4c5189f866ecaa72006e_Tokio -Method POST -Body $json }
But when the task is executed I get:
stderr202303011335.txt
When I add a timeout to the WaitForBatchJobAsync function:
public static async Task WaitForBatchJobAsync(this IDurableOrchestrationContext context, string jobId, TimeSpan timeout)
{
var eventName = GetJobFinishedEventName(jobId);
await context.WaitForExternalEvent(eventName, timeout);
}
...
await Task.WhenAll(
context.WaitForBatchJobAsync("Tokio", TimeSpan.FromMinutes(5)),
context.WaitForBatchJobAsync("Seattle", TimeSpan.FromMinutes(5)),
context.WaitForBatchJobAsync("London", TimeSpan.FromMinutes(5))
);
I get:
System.Private.CoreLib: Exception while executing function: MultipleJobOrchestrator. System.Private.CoreLib: Orchestrator function 'MultipleJobOrchestrator' failed: Event batchjob-finished-Tokio not received in 00:05:00.
Do I have to add an Event Subscription to the Function App?

Is there any way of monitoring if the event is received?