If you are not saving any entities why are you using a transaction to put the task into the queue.
The idea of a queuing a task transactionally is that the task doesn't get fired if the transaction fails (ie you save of entities fails). Seems completely redundant Rgds T On Oct 21, 11:18 pm, Matija <[email protected]> wrote: > Hi, > I am > usinghttp://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta... > way to enqueue two tasks in transaction. But I am not saving any > datastore entities. I am using objectify. > > I got this message: > > java.util.ConcurrentModificationException: too much contention on > these datastore entities. please try again. > at > com.google.appengine.api.datastore.DatastoreApiHelper.translateError(Datast > oreApiHelper.java: > 39) > at > com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(Datastor > eApiHelper.java: > 75) > at > com.google.appengine.api.datastore.TransactionImpl.makeSyncCall(Transaction > Impl.java: > 44) > at > com.google.appengine.api.datastore.TransactionImpl.makeSyncCall(Transaction > Impl.java: > 52) > at > com.google.appengine.api.datastore.TransactionImpl.commit(TransactionImpl.j > ava: > 64) > > When this happened only one task needed to be added to queue, so why > this error ? -- 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.
