1

Is there any way to run many functions (or the same function with different parameters) at the same time?

Thanks

4

2 回答 2

2

Yes, by triggering a function at 1 minute intervals where the time to run is > 1 minute (but under the 6 minute maximum) you'll certainly have multiple instances running. It can be hard to manage though: make sure you use the LockService if you're changing/writing to any shared resources and you need also to watch out for hitting 24hr compute time quotas.

于 2012-07-09T14:58:05.603 回答
0

There is an other better way: Use ServerHandlers... Unfortunately, concerning my script (Sorting gmail by size) short time limits don't allow me to go faster.

于 2012-09-14T11:46:04.710 回答