Checking status of Task Queue in Google App Engine

后端 未结 3 2092
醉话见心
醉话见心 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条回答
  •  Happy的楠姐
    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.

提交回复
热议问题