Dynamic Wait for image using Custom Script in Workfusion

Hi Team, I have generated one report from SAP using Workfusion, but the challenge here is one of my report takes 30 mins to execute and some report one hour, in this case how are we passing wait option here… sometime due to system issue report takes longer time. So kindly help me to fix this issue.