As pointed out by all-around-smart-dude Robert Kluin, it would be
great if you could place arbitrary tags on a task when submitting to a
pull queue, and then lease the tasks back out with that tag. This
would provide a great, built-in mechanism to do groupings, etc.
This would yield:
q = taskqueue.Queue('pull0')
q.add(taskqueue.Task(payload=payload_str, method='PULL',
tag='mytag'))
and
q = taskqueue.Queue('pull0')
sometasks = q.lease_tasks(3600, 100, tag='mytag')
where "tag" is an optional kwarg in both cases.
Star http://code.google.com/p/googleappengine/issues/detail?id=5061,
or discuss there.
--
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.