Microsoft Flow has a built in timeout of 30 days for any running Flow (Logic Apps has 90 days), which for most scenarios is not a problem.
However, there are business processes that might run longer than 30 days, and I’ll address two common scenarios and how to overcome them:
- Any single action will never last 30 days, but the total Flow might
- A single action might take more than 30 days
See https://docs.microsoft.com/en-us/flow/limits-and-config for details on Flow limit and see https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-limits-and-config for limits on Logic Apps.