glaforge/gaelyk — Issue #113: Add optional retry parameter to transactions if failure
Author: codeconsole
Created: 2012-02-14 03:01:36+00:00
State: open

http://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_for_Transactions

In case of certain exceptions (ConcurrentModificationException, APIDeadlineExceeded, etc), should be able to retry.

e.g.

datastore.withTransaction {
def e = datastore.get('User', 1234)
e.lastLogin = new Date()
e.save()
}, 3

would retry the above transaction 3 times.