Which accounts support long time script execution?

172 views
Skip to first unread message

Alex

unread,
Apr 11, 2023, 7:02:09 AM4/11/23
to Google Apps Script Community
Hi!

I heard that some Workspace accounts (not Experimental) now support Script runtime 30 min/ execution.

Is it true?

Faustino Rodriguez

unread,
Apr 12, 2023, 10:11:54 AM4/12/23
to Google Apps Script Community
Yes, it is true but I don't remember where it was documented
- I believe it was for Google Apps Business

I have some clients currently running Scripts for more that 6 minutes, sometimes into the 20 minutes
- And that has been the case for several years

Alex

unread,
Apr 13, 2023, 6:26:05 AM4/13/23
to Google Apps Script Community
Thank you Faustino.

I knew that experimental accounts can do that. But I don't see info about it on public.

Bennett, Scott

unread,
Apr 15, 2023, 1:57:25 PM4/15/23
to google-apps-sc...@googlegroups.com
I have workspace for education, I have had one run for over 20 minutes.  It was creating copies of pdfs and making new folders.  

--
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/04da2181-8d80-43b4-b827-ccf0bd5f692fn%40googlegroups.com.


--
Scott Bennett


Alex

unread,
Apr 15, 2023, 2:35:55 PM4/15/23
to Google Apps Script Community
Thank you Scott!

I intend to recommend Workspace to my clients. But for some reason I was not sure that it works now.

Very good!

Web Dev

unread,
Apr 18, 2023, 8:44:10 PM4/18/23
to Google Apps Script Community
Yes, 30 minutes is the max. Even for dev inside Google. If you go over the limit you'll need to break into multiple parts ans store info in ScriptProperties. This link is helpful: https://stackoverflow.com/questions/14450819/script-runtime-execution-time-limit

Rubén Rivera

unread,
Jun 15, 2023, 11:45:23 AM6/15/23
to Google Apps Script Community
I have a client having Google Workspace for Education accounts. Some years ago, I created a solution using Apps Script that used to be able to run long scripts. Still, suddenly the scripts started failing by exceeding the execution time limit before reaching 6 minutes of execution time. Due to several circumstances, I focused on helping my client to get the intended script output (each script execution creates a PDF report and update a tracking spreadsheet, more than 600 reports had to be created).

I would like to know when the script quotas changed and if this is an intended change.

I'm pretty sure to have seen the 30-minute limit at https://developers.google.com/apps-script/guides/services/quotas. Originally it was available for G Suite domains that have opt-in to join a program; I am trying to remember the exact name. Later the 30-minute limit was available for all G Suite / Workspace accounts. I have quoted this page on posts in Stack Overflow but it's down right now. The Wayback Machine doesn't show the version that I recall seeing.

Andrew Apell

unread,
Oct 6, 2023, 3:59:41 AM10/6/23
to Google Apps Script Community
I believe the script runtime was 6 minutes for consumer accounts and 30 minutes for G-Suite accounts. Then, sometime around the beginning of either 2020, 2021 or 2022 both account types were restricted to 6 minutes, and it remains so to this very day.
The custom runtime has always been 30 seconds, although I see recent logs of my functions in this category going for 1 minute.
I don't know whether this is in response to a support ticket I logged 3 years ago or not but, in any case, this would be a great development.

Reply all
Reply to author
Forward
0 new messages