79089194

Date: 2024-10-15 09:03:40
Score: 0.5
Natty:
Report link

I think you might want to look into durable functions https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=in-process%2Cnodejs-v3%2Cv1-model&pivots=csharp

You either chain your Functions or just wait for the event (status feedback) and if this not arrives, go into a timeout. Can look like this:

context.WaitForExternalEvent<bool>("FuncAProcessCompleted", timespan.FromMinutes(3)); https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-external-events?tabs=csharp

If you don't want to adapt durable, have a look at scheduled messages https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-sequencing#scheduled-messages

Basically you could schedule a message and then cancle it, when the status arrives. If it not arrives, the message will be activated and you can react on it with another function.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Julian Hüppauff