This is pretty strange, I know, but here is what I am seeing:
I have a scheduled task that runs every hour. Usually it takes just a few seconds to complete. The task itself is a very simple shell script that sets up the virtualenv and then runs a python script.
When I look at the log, almost always it takes less than 30 seconds to run. But it seems that the 7:00am run takes orders of magnitude longer: often 15000+ seconds. To troubleshoot this, I added debugs to every line of the script to print out a description and a timestamp. The very last line of the script prints the timestamp, and it's pretty normal: today's 7:00am run printed the last timestamp at 07:01:12. But the message that the task completed doesn't come until 11:12:07. And, the next run doesn't happen until 13:00.
Any ideas what is causing this gap from the last line of the script to when the scheduler thinks the task is done?