so the issue still persists. And just to make debugging the issue easier I timed and printed the actual time it took to run few of these tasks. I have some conclusive observations about the problem now. So the actual scripts took like few seconds to run. Pasting few examples as seen on task log.
31.31118941307068(this being the actual time it take to ran the script)
2021-05-05 12:34:52 -- Completed task, took 234.93 seconds, return code was 0.
10.151666402816772(this being the actual time it take to ran the script)
2021-05-05 13:13:52 -- Completed task, took 688.62 seconds, return code was 0.
So there are multiple issues I observed
1)The schedule jobs start is quite delayed in a lot of cases going up to 2 ~3 minutes late
2)After the script has run successfully and there are no ongoing tasks ,the task log still takes a lot of time to update. And this printing of last line of task log takes lot of time sometimes going upto 10 minutes .And this is what I feel the issue is
Now I am unsure if it is some account specific issue or system wide issue at your end. But I am definitely sure that the above two issues around schedule jobs exist.
I thought about deleting the existing scheduled task and creating new ones from scratch. Let me know if I should try that. Please let me know about the resolution urgently. Thanks