Oops, that was the python link. Java link is http://code.google.com/appengine/docs/java/datastore/transactions.html#What_Can_Be_Done_In_a_Transaction
On Mon, Mar 8, 2010 at 10:02 AM, Max Ross (Google) < maxr+appeng...@google.com <maxr%2bappeng...@google.com>> wrote: > Yes, the limit is 5: > > http://code.google.com/appengine/docs/python/datastore/transactions.html#What_Can_Be_Done_In_a_Transaction > > > On Mon, Mar 8, 2010 at 4:10 AM, JD <liva...@gmail.com> wrote: > >> I am enqueuing tasks within a transaction. >> >> >> tx.begin() >> >> for (int i=0;i<10;i++) { >> Queue queue = QueueFactory.getDefaultQueue(); >> TaskOptions task = url("/taskurl"); >> task.param("param", "value"); >> queue.add(task); >> } >> tx.commit(); >> >> >> I constantly get TransactionalTaskException when enqueuing task number >> #6 (everything until number 5 goes through without issues). >> >> Is there a limit on the number of tasks which can be enqueued within a >> transaction ? >> >> >> com.google.appengine.api.labs.taskqueue.TransactionalTaskException >> at >> >> com.google.appengine.api.labs.taskqueue.QueueApiHelper.translateError(QueueApiHelper.java: >> 50) >> at >> >> com.google.appengine.api.labs.taskqueue.QueueApiHelper.makeSyncCall(QueueApiHelper.java: >> 32) >> at >> com.google.appengine.api.labs.taskqueue.QueueImpl.add(QueueImpl.java: >> 241) >> at >> com.google.appengine.api.labs.taskqueue.QueueImpl.add(QueueImpl.java: >> 231) >> >> Caused by: java.lang.IllegalArgumentException: >> at >> >> com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java: >> 33) >> at >> >> com.google.appengine.api.labs.taskqueue.QueueApiHelper.translateError(QueueApiHelper.java: >> 51) >> ... 51 more >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> google-appengine-j...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.