Closed krisvijaykb closed 1 year ago
@AbodeSaafan Can you please help with this? I have seen you have resolved similar issue here - https://github.com/Azure/logicapps/issues/460
This is a different question/issue than #460 , @xuehongg can you help with this, thanks
@xuehongg , Any thoughts on this, thanks.
@MayankBargali-MSFT , @AbodeSaafan , Can anyone else help with suggestions on this please?
@krisvijaykb
The minimum value for Runtime.Backend.FlowRunTimeout is 7 days. 7.00:00:00. We will update the doc.
@xuehongg , So we can't really test this in dev environment with such high value. Is there a setting to prevent workflows from running long time when any of the action become stuck?
@krisvijaykb
Most actions have timeout of 2 minutes. In what scenario do you see action becoming stuck? Do you have a repro? If so, we can take a look.
@xuehongg , We had an incident some time back because of a Microsoft configuration issue with node.js where the correct node.js library couldn't be loaded. This kept the workflows running for hours instead of timing out and we had to cancel them manually.
We are not able to replicate them now. Also the run history lapsed since it is past 90 days.
So we are looking for a setting to restrict workflows from running more than a hour if possible. Please suggest if there is an appropriate setting for this?
I came across this setting "Runtime.FlowRunRetryableActionJobCallback.ActionJobExecutionTimeout" but not sure if it will work for all actions(managed and builtin)
@krisvijaykb
I am not aware of a setting to restrict a workflow from running more than an hour. "Runtime.FlowRunRetryableActionJobCallback.ActionJobExecutionTimeout" is for individual actions, not for the whole workflow.
@xuehongg , Thanks for the response.
I hope I can use "Runtime.FlowRunRetryableActionJobCallback.ActionJobExecutionTimeout" to restrict actions from getting struck or running more than a hour which eventually restrict the workflow from running long hours.
Can you please confirm whether this setting works for all actions of the logic app(both managed actions and built-in actions)?
@krisvijaykb
This setting works for built-in connectors. Managed connectors behavior the same way as in logic app consumption that they will time out after 2 minutes.
@xuehongg , Thanks for your inputs.
I will try to set this setting for built-in connectors and hope workflow won't gets struck for an hour or two when similar incident happens in future.
I can't really test the timeout because of its minimum value being too high(7 days). Edited the MS doc to include this value. Hoping MS will make it flexible at least to an hour in future maybe.
For anyone hitting here with similar issue, we settled with a workaround of having a recurrence trigger workflow(twice a day) which will scan all workflows runtime and cancel the ones running more than a hour.
PR has been submitted to make the documentation clear that the minimum for the setting is currently 7 days. A simple way to control workflow timeout for each logic-app is to have two flows from the start,
See below for reference. https://clouddev.blog/Azure/Logic-Apps/azure-logic-apps-timeout/#more
@Ricky-G,
Yeah. The documentation didn't have the 7 days limit. I have already merged an PR to add this to doc. Looks like you have moved the line little above.
Your approach will work but we kinda have lot of workflows running already. We decided it's better to have a monitoring workflow which scans and cancels any workflow running more than the desired time limit.
Describe the Bug
As per the doc - Run duration setting , The workflows are not getting timed out , instead they continue to run till all the actions are completed.
Plan Type
Standard
Steps to Reproduce the Bug or Issue
Workflow JSON
No response
Screenshots or Videos
No response
Additional context
We have also tried setting this value in app setting and changing the duration value to different limits. Nothing made the workfow to timeout.
AB#23805093