开发者

create a task to run after a time period in app engine?

开发者 https://www.devze.com 2023-01-06 16:02 出处:网络
I need to run 2 tasks around 2 minutes apart but need to insert them both at the same time into the queue. how do i do this?

I need to run 2 tasks around 2 minutes apart but need to insert them both at the same time into the queue. how do i do this?

taskque开发者_JS百科ue.add('/task1', { 'args' : 'a' })

taskqueue.add('/task2', { 'args' : 'b' })

is there some way i can insert a time component into this execution?

can you please illustrate with an example?


check out the docs for the Task class and read about the countdown and eta args on the constructor. I think either one will allow you to do what you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消