Is there any way to increase the 6 minute execution time limit for Google Apps Scripts? I thought that the answer might be the Early Access program for G Business Suite. I might be willing to pay $10 a month for G Business Suite, if I could get into the Early Access program, in order to increase the execution limit from 6 minutes to 30 minutes. But an Advisor from the G Suite Help Forum said that Early Access is a limited program, which means that there is no guarantee that I could get that.
Is there any other way to increase the 6 minute execution limit?
Please note that in this question I am not asking for ideas of how to optimize my scripts to fit within the 6 minute limit. (I may ask that in the future, if the answer to this current question is "No, there is no other way.")
Therefore, appropriate answers to this current question are:
- "No, there are no other ways to increase the 6 minute execution limit for Google App Scripts."
- "Yes, there are other ways to increase the 6 minute execution limit, and these are the ways..."
For G Suite organizations, as I understand, it's possible to eliminate maximum execution time limit by signing in to Early Access Program. From Quotas for Google Services
If you can't access EAP, there are several workarounds shared on this site. Some workarounds let the script to run until the error occurs, then restart it on the next item to be processed, other scripts just split the work on small enough to avoid the error pieces.
Related Q&A
I have dozens of jobs that take > 6 minutes to run. I use an "outerloop" script (below) that I've tuned over the years. It runs each job to completion no matter how long it takes.
Setup (just a guide - you need to apply it to your own specific scenario):
var thingies =
to whatever you want to process. It should ideally be an array.//do our work here
lineouterLoop()
to run every x hours/days. It's OK to rename it to something meaningful to you likedoProcessWidgets()
.Code: