增加Google App Engine中的执行时间限制 [英] Increase execution time limit in Google App Engine

查看:118
本文介绍了增加Google App Engine中的执行时间限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用querecus在Google App Engine中使用PHP。



我试过了

  ini_set('max_execution_time',3000); 

我试图通过PHP禁用执行时间限制,但都失败了。



我在应用程序引擎上收到服务器错误,因此,有没有其他方法可以禁用GAE中的超时?

解决方案

它限制前端请求60秒,cron限制600秒。

/任务处理程序。



您也可以使用后端 https://developers.google.com/appengine/docs/java/config/backends (编辑:backend现在是一个弃用选项)



后端服务器没有执行查询的时间限制。


I am using querecus to use PHP in Google App Engine. I get timeout error when using it since it has lots of files to process.

I tried

ini_set('max_execution_time', 3000);

and I tried to disable the execution time limit via PHP, but all failed.

I get server error on app engine due to this, is there any alternative way to disable timeout in GAE?

解决方案

Execution time of script limited by GAE environment, you can't change it.

It limit 60 seconds for frontend request, 600 seconds for cron/task handlers.

Also you can use backend, https://developers.google.com/appengine/docs/java/config/backends (edit: backend is a deprecated option now)

Backend server have no limit time for execution query.

这篇关于增加Google App Engine中的执行时间限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆