Automatic task execution on google app engine development server (python)
python 开发服务器的文档是这样描述运行任务的:
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...
但是python sdk 1.3.4 版的发行说明(我正在使用)说:
Auto task execution is now enabled in
the dev_appserver. To turn this off
use the flag --disable_task_running.
所以也许文档有点落后,对吧?除了当我去"http://localhost:8080/_ah/admin/tasks?queue=default"时,我看到这个:
Tasks will not run automatically. Push the 'Run' button to execute each task.
任务是否可以自动运行?如果是这样,有什么诀窍?
似乎问题在于我使用 python 2.6 而不是 2.5 运行开发服务器。使用 2.5 时,一切正常。