Hi Kim, Could we add a list of exceptions allowed to be thrown by the Task Queue service and still consider the transaction as successful?
E.g. (mostly stolen from here <https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-tasks#enqueuing_tasks_in_cloud_datastore_transactions> ) from google.appengine.api import taskqueue from google.appengine.ext import ndb @ndb.transactional def do_something_in_transaction(): taskqueue.add(url='/path/to/my/worker', transactional=True, allow_transactional_exceptions=[taskqueue.TaskAlreadyExistsError, taskqueue.TombstonedTaskError]) #... do_something_in_transaction() Nick On 29 April 2016 at 09:18, 'Kim Lewandowski' via Google App Engine < [email protected]> wrote: > Hi Jeff, > > if we allowed named tasks then the transactional task could be rejected > because the task name already exists. > > "Task Name 1" -> Datastore transaction -> AddTask to Queue > "Task Name 1" -> Datastore transaction (???) -> ???? > > > On Wednesday, April 27, 2016 at 12:43:43 PM UTC-7, Jeff Schnitzer wrote: >> >> My task queues sometimes have a lot of tasks sitting in them for various >> reasons (usually failing/retrying). I’d _really_ love to be able to look at >> a queue at a glance and see what’s in it. Instead it’s a wall of numbers. >> >> Ah hah! I can name tasks, and this will show up in the interface, right? >> >> I just tried that and get “transactional tasks cannot be named”. What’s >> the rationale for this? I get that the task name needs to be unique, but >> that can be fixed with a suffix… >> >> This was asked in a SO question but the answer, although accepted, is >> bogus. >> >> Any ideas? >> >> Thanks, >> Jeff >> > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/9970005d-cdd1-4d78-bf71-a2da58d1a465%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/9970005d-cdd1-4d78-bf71-a2da58d1a465%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAOj3zuCcaBJFMN7KNEV_jW361v5Zwm4Z7X0oM9bqh9fFNvswQA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
