CodexBloom - Programming Q&A Platform

How to troubleshoot Azure Logic Apps scenarios with 'The action timed out' scenarios during high load?

πŸ‘€ Views: 38 πŸ’¬ Answers: 1 πŸ“… Created: 2025-06-10
azure logic-apps azure-functions event-grid JSON

I'm converting an old project and I need some guidance on I'm working on a project and hit a roadblock. Does anyone know how to I'm working through a tutorial and I'm confused about I'm currently working on an Azure Logic App that integrates several services, including Azure Functions and SQL Database......... I've noticed that under heavy load, the Logic App frequently fails with the behavior message `The action 'xxxxx' failed with status 'ActionFailed' and behavior code '504'`. This seems to happen when the Logic App is triggered by an event in Azure Event Grid and calls multiple components sequentially. My Logic App is designed to process events in batches, and it sometimes hits this timeout behavior when processing around 50 events at a time. I've tried increasing the timeout settings in the 'Run After' configuration of my actions, but it doesn’t seem to help. I'm using the standard tier of Azure Logic Apps, and I have set the timeout to 60 seconds, but it still times out. Here's a snippet showing how I'm invoking the Azure Function from the Logic App: ```json { "type": "Http", "inputs": { "method": "POST", "uri": "https://<your-function-app>.azurewebsites.net/api/<your-function>?code=<your-function-key>", "body": { "eventData": @{triggerBody()} } } } ``` I've also checked the performance of the Azure Function, and it seems to handle individual requests within 30 seconds. What could be causing the timeout in the Logic App? Are there best practices for optimizing Logic Apps in high-load scenarios? Any insights or recommendations would be greatly appreciated. For context: I'm using Json on Windows. Is there a better approach? I'm working in a Linux environment. How would you solve this? My team is using Json for this mobile app. I'm working with Json in a Docker container on Ubuntu 22.04. Is there a better approach? Thanks for your help in advance! This is part of a larger desktop app I'm building.