问题描述
我的后端作业是在cron作业(每4小时)的基础上工作。但它会终止与处理数据。服务器日志显示如下:
My backend job is working on the basis of cron job(every 4 hour).But it is terminated with out processing the data. The server log displays as following :
500 15377121ms 0kb instance=0 AppEngine-Google; (+http://code.google.com/appengine)
E 2012-10-05 01:50:18.044 Process terminated because the backend took too long to shutdown.
如何在我的程序中处理这种错误
How to handle this kind of error in my program
推荐答案
当App Engine需要关闭您的后端,但后端无法在30秒内退出时,会生成此错误。下面列出了可能发生此问题的一些原因:。根据错误类型,App Engine可能会向您的后端发送即将停止的通知,因此建议您,以便您可以收集有关应用程序状态的更多数据发生。
That error is generated when App Engine needs to shut your backend down but the backend fails to exit within 30 seconds. Some reasons why this might be happening are listed here. Depending on the type of error, App Engine may be sending your backend a notification of the impending shutdown, so it's a good idea to register a shutdown handler so you can gather more data about your app's state when this is about to happen.
如果你经常看到这种情况,可能有一个系统的解释,例如你的工作的内存超过后端类的最大值。
If you are seeing this regularly there is probably a systematic explanation, such as your job's memory exceeding the maximum for the backend's class.
这篇关于GAE:进程已终止,因为后端在后端作业中关闭时间过长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!