简体   繁体   English

Google Apps 脚本的每日总限制是多少?

[英]What is the TOTAL DAILY limit for Google Apps Script?

We know that the limit is 6 minute / execution .我们知道限制是6 分钟/执行 Fine!美好的!

My code runs in 1 to max.我的代码以 1 到最大值运行。 4 minutes, once every 30 minutes. 4分钟,每30分钟一次。

Clearly, even the max 4 minutes is less than the 6 minute limit per execution.显然,即使是最长 4 分钟也少于每次执行的 6 分钟限制。 Yet I get the following error message sometimes:但是我有时会收到以下错误消息:

Service using too much computer time for one day

So, what is the TOTAL DAILY limit for all executions combined?那么,所有执行合并的 TOTAL DAILY 限制是多少?

According to the official documentation :根据官方文档

Service using too much computer time for one day.一天使用过多计算机时间的服务。 This indicates that the script exceeded the total allowable execution time for one day.这表明脚本超过了一天的总允许执行时间。 It most commonly occurs for scripts that run on a trigger, which have a lower daily limit than scripts executed manually.它最常见于在触发器上运行的脚本,其每日限制低于手动执行的脚本。

Again on the same page, you can see that there is the following limitation on the total time you can run a script via triggers:再次在同一页面上,您可以看到通过触发器运行脚本的总时间有以下限制:

在此处输入图像描述

Therefore, if you have a consumer account you can only run a script via trigger for 90 minutes.因此,如果您有消费者帐户,则只能通过触发器运行脚本 90 分钟。

As for different executions time - i do not know what your code does but eg.至于不同的执行时间 - 我不知道你的代码做了什么,但例如。 If it performs http requests it can vary depending on answer time from remote sites.如果它执行 http 请求,它可能会因远程站点的应答时间而异。 But do not know as long as you do not post code.但不知道只要你不贴代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM