/_ah/queue/__deferred__ in App Engine Logs

泪湿孤枕 提交于 2019-12-06 11:56:25

I had a similar issue. I've found that that in one of my filters was opening session for each incomming connection:

httpRequest.getSession(true);
//or the one below - both opens a valid HTTP Session
httpRequest.getSession();

and my appengine-web.xml was configured to store session asynchronously

<sessions-enabled>true</sessions-enabled>
<async-session-persistence enabled="true"/>

This has resulted in creating a lot of tasks in default queue and each one of them tried to store an empty session. To avoid this, make sure that you are opening session only for proper requests. Either by fixing filter or changing filter url-patterns in your web.xml

Unless you specified a queue name, all deferred tasks go into the "default" Task Queue. From there, you can rerun and if you are on local dev server (debug mode) you can step through the code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!