[HELP] Scheduled Run Timeout vs Manual Run < 5 Minutes

93 views
Skip to first unread message

Brad FISHER

unread,
Sep 9, 2022, 6:26:58 AM9/9/22
to Google Apps Script Community
Hi everyone,

New user here but a long-time app script code writer. 

Recently, I've noticed a number of my scripts involving fetching JSON API XML sources were timing out at 30 minutes that were scheduled during the day at specific times.

The odd part is that when I manually run numerous of my app scripts, the same scripts are finished in under 5 minutes.

I had purposely put in Logger commands to review the logs and noticed the speed of simple loops to grab the JSON XML data had drastically slowed down where items were taking 30-45 seconds per loop on a scheduled app script. Yet, if I ran the same loop manually, it was being done in under a second.

These app scripts and google sheets are stored in shared drives (not sure if that would impact it).

Has anyone encountered this before or have any general advise? 

David Chapuis

unread,
Sep 13, 2022, 9:54:54 PM9/13/22
to Google Apps Script Community
Hi,

Could you solve the issue?
I am currently runing into a kind of similar issue and don't know what is happening.

Andrew Roberts

unread,
Sep 13, 2022, 11:41:46 PM9/13/22
to google-apps-sc...@googlegroups.com
Sometimes just the time of day can affect how long a script takes to run. I find things slow down one the US comes online.

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/78dcb117-4bcd-46a5-ba4d-e65cadc83127n%40googlegroups.com.

DimuDesigns

unread,
Sep 16, 2022, 7:39:47 AM9/16/22
to Google Apps Script Community
@AndrewRoberts Is that only for consumer accounts or does this also apply to paid Google Workspace accounts?

David Chapuis

unread,
Sep 16, 2022, 7:46:22 AM9/16/22
to Google Apps Script Community
In my case, it was a mistake of mine, I had an infinite while loop in my code :D :/

Andrew Roberts

unread,
Sep 16, 2022, 11:21:59 AM9/16/22
to google-apps-sc...@googlegroups.com, Dimu Designs
@Dimu Designs I've not monitored whether I'd been on a WorkSpace account or not - but there have been a few evenings (GMT) when I've just given up work as the script was taking so long to run, especially in the debugger.

Reply all
Reply to author
Forward
0 new messages