是否可以在 Google App Engine 任务队列中执行任务?

Is it possible to execute a task inside Google App Engine taskqueue?

我想对 Google App Engine 任务队列中的函数进行单元测试。我想知道是否有任何方法可以执行任务队列中的任务以测试它是否产生所需的输出。

您需要手动将队列中的任务和 post 与所有参数一起发送到 url。检查这些文档 https://cloud.google.com/appengine/docs/python/tools/localunittesting#Python_Writing_task_queue_tests http://googleappengine.googlecode.com/svn/trunk/python/google/appengine/api/taskqueue/taskqueue_stub.py