AppsScriptPulse

An easy way to deal with Google Apps Script’s 6-minute limit

Image credit: Inclu Cat

Google Apps Script is handy, and it will help you a lot in your work. However, as you use it, you may hit a big wall. That is the six-minute limit on execution time. As the official documentation states, the maximum allowed time per execution of Google Apps Script is 6 minutes.

If the script execution time reaches 6 minutes, the script will stop suddenly, and an error message “Exceeded maximum execution time” will be displayed.

For as long as Google Apps Script has been around there have been various solutions published for handling the 6 minute execution limit. This post from Inclu Cat presents a nice overview and solution for the execution limit.

This is also an issue also recently covered by Amit Agarwal who takes a slightly different approach in Exceeded maximum execution time Exception in Google Apps Script, by breaking the execution before the limit is reached.

Source: An easy way to deal with Google Apps Script’s 6-minute limit

2 comments for “An easy way to deal with Google Apps Script’s 6-minute limit

  1. 29 June, 2023 at 20:1022

    What about when running as an add-on installed from the store? That is limited to 1 timer trigger per user, and can execute a max of once per hour.

    • 29 June, 2023 at 21:4522

      That more tricky – the workaround I’ve seen use services outside of the add-on to orchestra more regular tasks, however this requires a lot more engineering

Leave a Reply

Your email address will not be published. Required fields are marked *