Chandan Kumar
Chandan Kumar

Reputation: 909

App Engine task Queue create batch of queue items and execute after every 10 second in go lang

I want to create batches of queue items and execute after every 10 second, due to some limitation of third party API using inside code (Third party API have 1000 API call per minute).

But i don't know how do i achieve the given requirement in App Engine with taskqueue.

Or

It is possible to create batches with taskqueue push?

Upvotes: 0

Views: 139

Answers (1)

petomalina
petomalina

Reputation: 2150

TaskQueue Tasks have a Delay time.Duration as well as ETA time.Time fields which can be used to create and delay tasks. I believe you can reuse the top example but set one of the fields before calling taskqueue.Add(c, t, "")

Upvotes: 1

Related Questions