Skip to content Skip to sidebar Skip to footer

Exceeded Maximum Execution Time Error In Google Apps Script

i am trying to run this script in google apps script. It lists all files recursively within a folder along with its size, name, url etc to spreadsheet. There is nothing wrong with

Solution 1:

I have managed this problem in the past using the Continous Execution Library by Patrick Martinent:

https://gist.github.com/patt0/8395003

The basic idea is to:

  • Set up your function so it can be terminated and resumed without issue
  • Set up a time trigger to re-run the function
  • Run it until it nears the execution timeout and exit gracefully
  • Allow the trigger to restart the function
  • Repeat until done, and remove the trigger

Post a Comment for "Exceeded Maximum Execution Time Error In Google Apps Script"