[英]Google Apps Scripts Idle time
I am currently using Google Apps Scripts to create a Drive Addon, and I noticed that if I leave a page idle for some time, the script functionality no longer executes (eg calls to google.script.run -- frontend-only stuff still works as expected) 我目前正在使用Google Apps脚本创建驱动器插件,并且我注意到,如果我将页面闲置了一段时间,则脚本功能将不再执行(例如,调用google.script.run-仅用于前端的东西仍然有效)符合预期)
I'm wondering if there is an idle timeout for apps script and if so, what kinds of techniques should I use to handle it cleanly? 我想知道应用程序脚本是否有空闲超时,如果有,我应该使用哪种技术来干净地处理它?
Thanks! 谢谢!
I've managed to isolate the problem to having something to do with the Cache service provided by Apps Script. 我设法将问题隔离到与Apps Script提供的Cache服务有关。 I wasn't aware that there was an expiry time on cache objects and have set it now to the maximum 6 hours. 我不知道缓存对象有一个到期时间,现在将其设置为最多6个小时。 The default expiration is 600 seconds (10 minutes). 默认到期时间是600秒(10分钟)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.