I have a customer who has a Workflow that can take a short amount of time but occasionally it gets hung up. While we are researching the hang up cause, they are hoping in the interim that we could have a scheduled task that could terminate this specific Workflow if it is running. Has anyone found a way to programmatically terminate specific in-process Workflows via a schedule? This could be a scheduled task, custom script in a Workflow, or any other way someone has found that removes the manual termination of the Workflow.
Question
Question
Replies
replied on September 5, 2023
I'm relatively new to workflow but could you do a parallel?
Left branch - Workflow steps
Right branch - Delay for x amount
This way if the delay(timer) is met, it would terminate the workflow on its own?
0
0
replied on September 5, 2023
Unfortunately not. This is an issue where the actual Workflow is stuck, meaning it is not running any new activities/timers but is still showing as active. This tends to happen with long-running/high-volume Workflows and those running custom scripts. I wish there was a setting you could put on the Workflow where it would automatically terminate if running for longer than a certain period, no matter the reason.
0
0
You are not allowed to follow up in this post.