There are many valid reasons why a task may get stuck "in progress". See IN-PROGRESS task issues - A Client’s Guide to Understanding and Resolving
There is not an out of the box scripts to monitor the UI for tasks "in-progress" over X minutes. A task being "in-progress" may not constitute a problem as this is a valid processing status in IDM before a task completion.
Identity Manager
14.5