Would a task queue work here? You could queue a task with a name that is unique to the operation (e.g. leveraging some payment ID, in the example case). If a task with the same name is already in the queue, or was in the queue in the last 7 days, GAE won't queue it again. This gives you the run-once, retry, and pruning of old 7tombstones (in this case, the task name) automatically.
Giving credit where due, this approach is taken from Dan Sanderson's "Programming Google App Engine" book (O'Reilly). -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/TR3ww5dxVE8J. 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.
