re

On Jan 14, 7:24 pm, supercobra <[email protected]> wrote:
> One of the challenge is to wait for 5 minutes. E.g. Fetch a URL, store
> results, wait 5 min, do it again. Since a queue will execute the task
> almost immediately (if it is empty) this would not work unless the
> queue is filled w/ a known number of tasks.
>
> Any suggestion welcome.

You can use the 'countdown' parameter in Task constructor (
http://code.google.com/appengine/docs/python/taskqueue/tasks.html#Task
) to set the number of seconds for the Task to wait in the queue
before executing. I use this for scheduling a task a few minutes in
the future when UrlFetch returns the data I already have.

lp,
Uros

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to