Automatic task execution on google app engine development server (python)

霸气de小男生 提交于 2019-12-06 06:45:30

问题


The docs for the python dev server say this about running tasks:

When your app is running in the development server, task queues are not processed automatically. Instead, task queues accrue tasks which you can examine and execute from the developer console...

But the release notes for version 1.3.4 of the python sdk (which I am using) say:

Auto task execution is now enabled in the dev_appserver. To turn this off use the flag --disable_task_running.

So maybe the docs are a little behind, right? Except when I go to "http://localhost:8080/_ah/admin/tasks?queue=default", I see this:

Tasks will not run automatically. Push the 'Run' button to execute each task.

Can tasks be run automatically or not? If so, what is the trick?


回答1:


It seems the problem was that I was running the dev server with python 2.6 instead of 2.5. When using 2.5, everything worked.



来源:https://stackoverflow.com/questions/3115053/automatic-task-execution-on-google-app-engine-development-server-python

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