开发者

google.appengine.runtime.DeadlineExceededError solution?

My appengine application often throws out this exception. This is because appengine application is blocked i开发者_StackOverflown China, so I uses third party service to bypass the blocking. My application needs to call the APIs, which is in China, to fulfill the requests. I know many of you have no this problem, please for help. I know the limit is 30 seconds.I can't let google to lengthen it.


You could use a Task Queue to do the actual request and either have the client poll for a result or use the Channel API. This would increase your limit to 10 minutes instead of 30 seconds.

So, for example:

  • Browser makes request via AJAX
  • Server returns Channel token and kicks off Task
  • Browser opens channel and waits for response
  • Task provides browser response via channel
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜