google-apps-script - 谷歌应用脚​​本: does the 30 simultaneous executions limitation apply to the owner of the script or the user who executes it?

标签 google-apps-script google-sheets concurrency quota simultaneous

我管理一个大型 Google 电子表格,在其中使用应用脚本通过基于时间的触发器自动对表单响应进行排序和格式化。 此工作表和许多类似的工作表均归一个 Google 帐户所有,而不是管理各个工作表的帐户。

我注意到我的脚本的性能随着时间的推移非常不一致。一分钟他们会在 10-30 秒内执行,然后他们会持续超时 2 小时,然后突然又开始工作。无论实际脚本是什么以及它是由触发器运行还是手动运行,都会发生这种情况。

我知道 Apps 脚本的限制之一是 30 simultaneous executions per user .

所以我的问题是:该限制是否适用于应用程序脚本项目的所有者或设置触发器并运行脚本的人?

因为如果是前者,那么性能问题的原因可能是有数十张工作表争夺这 30 个执行槽?

最佳答案

配额调用归因于运行脚本的用户。不同情况下,“运行脚本的用户”/有效用户是不同的。如果出现

<表类=“s-表”> <标题> 实例 谁的配额? <正文> 脚本编辑器“运行” 键盘上的用户 菜单“运行”/单击按钮 键盘上的用户 简单的触发器 键盘上的用户 可安装的触发器 安装触发器的用户(无论键盘是谁)ref 自定义函数 键盘上的用户 Web应用程序(以我的身份执行) 安装触发器的用户(无论谁在键盘前) Webapp(在用户访问时执行) 键盘上的用户 ref

除非所有者满足上述任何条件,否则配额调用不会归因于所有者。

引用:

User identity/permissions

关于google-apps-script - 谷歌应用脚​​本: does the 30 simultaneous executions limitation apply to the owner of the script or the user who executes it?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73346377/

相关文章:

haskell - writeTVar 的不安全版本

java - RecursiveTask<Integer> 正确实现

xml - recommendationXPath 似乎有效但谷歌电子表格只给出 "import internal error"

google-apps-script - 锁定预填充 URL 字段

javascript - Google Apps 脚本 map 教程错误

html - 如何阻止按钮从屏幕上消失?

c# - 如何使用 C# 下载 Google SpreadSheets?

google-sheets - 在 Google 表格中遇到 IMPORTDATA 最大尺寸错误时,我有哪些替代方法?

postgresql - PostgreSQL 11 中的并发更新

google-chrome - GOOGLE ERROR : In order to select an item from your online storage, 请登录