Hi.
I'm planning on using GAE's TaskQueue API to refresh my cache of HTML pages, which I save in the Datastore (and memcache, but Datastore is more reliable).
Once a week, i add/edit some data, and need to regenerate associated HTML pages, and triggering tasks is the way to do.
Note that different edits may imply changing the same cached page. For instance, the homepage has snippets from several parts from different data. What I want is to launch tasks to the task queue with a delay (using countdown of an hour, for example) so that I can accumulate several edits, and in the end, the cached pages will be regenerated only once.
The problem is, I don't need to add a task to regenerate page X if there is already a task queued to regenerate page X in a hour. Thus, I need to check the task list and see if there is already one.
How can I access the task list?