How to use push queues (tasks) with GAE?

后端 未结 2 1067
离开以前
离开以前 2021-01-23 08:25

My GAE application should upload several files to another server (with urlfetch usage). How to implement this with tasks with assumption that at the end of last task completion

2条回答
  •  孤城傲影
    2021-01-23 08:55

    You can make an counter entity, that stores current count of tasks to execute. And each task. after finish, must decrease value of this counter, in transaction. If it becomes 0, then it's last action, just finished.

提交回复
热议问题