Checking status of Task Queue in Google App Engine

后端 未结 3 2077
醉话见心
醉话见心 2021-02-15 00:47

I\'m putting several tasks into a task queue and would like to know when the specific tasks are done. I haven\'t found anything in the API about call backs, or checking the stat

相关标签:
3条回答
  • 2021-02-15 01:06

    You might be able to accomplish this with the pipeline api. You make something dependent on all 6 tasks and let it rip.

    http://code.google.com/p/appengine-pipeline/

    Good Luck.

    0 讨论(0)
  • 2021-02-15 01:23

    You can use memcache. Use a unique key specific to this task group. Set a count when you kick off your tasks, and have each task atomically decrement it. When the value is 0, your tasks are complete. The task that finds this value to be 0 can call your callback.

    0 讨论(0)
  • 2021-02-15 01:24

    The new REST/JSON task queue API will let you do this.

    http://code.google.com/appengine/docs/python/taskqueue/rest.html

    This does not scale well to thousands of tasks...

    I do like the pipeline API suggestion though!

    0 讨论(0)
提交回复
热议问题