intermittent issue with the code

Mitesh 2016-03-23 21:06:54

the script attached gets executed frequently throughout the day, but on Thursdays it's behaviour is different, takes longer to complete. Ususally the time to complete is about 2 minutes, on Thursdays it takes hours and still does not complete. There is nothing competing with this, and on other days if this happens I can re-run the same manually within minutes.