Can Push Queue tasks be executed in order?

48 views
Skip to first unread message

Paul Canning

unread,
Nov 13, 2015, 9:04:05 AM11/13/15
to Google App Engine
Say if I have 10 tasks I need to run, is there a way I can make sure tasks 1-9 are complete (in any order) before task 10 is launched?

Adam

unread,
Nov 13, 2015, 10:43:04 PM11/13/15
to Google App Engine
Hi Paul,

It's possible to launch a task from another task. This means each task 1-9 can check if the work from the other tasks has completed, and then launch task #10 if it is. Task #10 should check to see if it's not already running (singleton). Be careful to avoid having a task launch itself as this will lead to a condition called a fork bomb.

Cheers,
Adam

Paul Canning

unread,
Nov 16, 2015, 4:31:30 AM11/16/15
to Google App Engine
How can you check for an existing running Task (in PHP)?

Is there a way to "label" a task or do you have to check for its ID?
Reply all
Reply to author
Forward
0 new messages