How to use push queues (tasks) with GAE?

后端 未结 2 1087
离开以前
离开以前 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 09:18

    The code you show won't work - the tasks you're starting aren't in the same local scope as the counter, and may not even be on the same machine. You could use a datastore-based counter as @splix suggests, but this looks like a case where the Pipeline library would be ideally suited.

提交回复
热议问题