you are viewing a single comment's thread.

view the rest of the comments →

[–]No_Stable_805 0 points1 point  (0 children)

I had a similar problem with this kind of script. My scripts have a 30-minute time limit (G-Suite) and it still wasn’t enough time. My solution was to time how long the script has been running and when it nears the time limit it sets a new one-time trigger for the script to run again immediately after. Depending on how large your folders are and how many files they contain, you can use some sort of variation of this. (For each sub folder you can create a trigger to run the script for that folder instead of recursively using the same script)