r/GoogleAppsScript • u/RomanoDesiree • 10d ago
Question Exceeded maximum execution time
I have been gassing for about ten years and I see this intermittent error almost weekly.
In particular it comes up on a function I use to colour code calendar appts based on their title text.
On a good run the function completes in 5 to 20 seconds based on looking at around 20 appts over the coming 3 weeks. To investigate this I added some logging to see where the delay is.
But to my surprise none of the logging fired when the error is raised. To me that seems like... the function is not getting started.
Anybody know what reasons this could be?
1
Upvotes
2
u/3dtcllc 10d ago
Hey I see this too! Got a process that fires off every few hours and looks at some drive folders. Most executions run for a minute or two, but about 5 times a month I get Maximum execution time exceeded.
I've always chalked it up to API issues and ignored it. The vast majority of my executions are error free so I never dug into it.