Many enterprises use Logic Apps to organize the actions that are involved in solving the business problem. The outcome of the Logic App runs may be either success or failure depending on the actions involved in the Logic App run. A failed Logic App run can be resubmitted at some point in time which might result in a successful run. Serverless360 provides a capability to automate the process of resubmitting the failed Logic App runs and facilitate the above-mentioned requirement.
Consider an employee management scenario, where the employee joining process in an organisation is defined in a Logic App. When an employee joins an organisation, a message with required employee details will be pushed into a Service Bus Queue by the HR application .
- A Logic App will be listening to the Service Bus Queue for messages
- Whenever a message arrives in the Service Bus Queue, the Logic App will extract the message body of the Service Bus Message and post it to an Azure Function and store it in a Storage Table for future references
- The Azure Function will process the Employee details and assign him to the required departments in the organisation
There are certain instances where the function app cannot be accessed by the Logic App. In such cases, the Logic App run will fail. When the Function app becomes available, we need to reprocess the failed Logic App run. This can be done manually using Serverless360.
This manual resubmission of Logic App runs can be automated using Scheduled Activities of Serverless360.
How automated resubmission in Serverless360 is better than retry policy in Azure portal?
The Scheduled activity of resubmitting the failed Logic App runs can be customised to resubmit only required runs by using the following filters:
- Failure Occurrence: The Logic App runs failed in the past x minutes (specified in the activity creation) from the activity run will be chosen for resubmission
- Failure Reason: The runs containing any of the provided Failure reasons will be resubmitted
- Trigger: The runs initiated by any of the selected Logic App triggers will be resubmitted
- Run Action: The runs having all the selected run actions in their corresponding expected state will be chosen. If the expected status chosen is Failed and if any failure reason is provided, the run will be resubmitted only of the failure reason of the run actions matches one of the provided reasons
The runs resubmitted by the automated activity will be added with the provided tag, which can be viewed in the run history of the Logic App in Serverless360