CodexBloom - Programming Q&A Platform

Azure Functions: Why is my Durable Function Not Triggering on Time?

👀 Views: 53 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-12
azure-functions durable-functions timers C#

I'm performance testing and I've been struggling with this for a few days now and could really use some help... Hey everyone, I'm running into an issue that's driving me crazy. I'm experiencing a frustrating issue with my Azure Durable Functions, specifically the orchestration function isn't triggering as expected. I set up a simple timer trigger that should run every hour and initiate the orchestration, but I consistently see no execution for hours, leading to missed schedules. Here's the timer trigger code I'm using: ```csharp [FunctionName("TimerTrigger")] public static async Task Run([TimerTrigger("0 0 * * * *")] TimerInfo myTimer, ExecutionContext context) { var instanceId = await starter.StartNewAsync("OrchestratorFunction", null); log.LogInformation($"Started orchestration with ID = '{instanceId}'."); } ``` And here's my orchestration function: ```csharp [FunctionName("OrchestratorFunction")] public static async Task RunOrchestrator([OrchestrationTrigger] IDurableOrchestrationContext context) { var output = await context.CallActivityAsync<string>("ActivityFunction", null); return output; } ``` I checked the Function App logs, and I see this warning: `Durable Functions: Orchestration "OrchestratorFunction" not found. It might be in a different storage account or the orchestration might not have been started.` I also verified that the storage account is correctly configured and connected. I've tried re-deploying the function app, ensuring that the function is set to run in the correct time zone, and even tested the timer trigger manually using the Azure Portal, but I still face the same issue. I'm using .NET Core 3.1 and have the `Microsoft.Azure.WebJobs.Extensions.DurableTask` package version 2.4.0. Could there be an issue with the Durable Function settings or configurations that I'm overlooking? Any insights would be greatly appreciated! I'm working on a service that needs to handle this. Am I missing something obvious? My development environment is macOS. I'd really appreciate any guidance on this. For context: I'm using C# on Ubuntu. Thanks for taking the time to read this!