Tuesday, 23 March 2021

Send new input data to already running Orchestrator function via Http Trigger

I am currently building an Azure Durable Function that gets triggered via Http trigger. When sending the initial request to the Http Trigger I am including an API Token, which then gets passed as input to the Orchestrator, which passes this token on to the activities. Now I noticed the problem that this token sometimes expires before the Orchestrator is done, creating authentication issues.

I am already polling the intial Http trigger every few minutes and retrieving the status of the Orchestrator using the DurableOrchestrationClient.get_status() method, so I was wondering if I could somehow pass a new token to the running Orchestrator via the Http trigger every time I am doing such a polling. This would solve my authetication issue.

Looking in the docs there seems to be no functionality to simply pass new input, all I have found so far is the option to create external events that can be sent to a running orchestrator. As detailed in this link: https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-instance-management?tabs=python#send-events-to-instances

Is this my best bet of solving it?



from Send new input data to already running Orchestrator function via Http Trigger

No comments:

Post a Comment