Attached is a modified version of that class that lets you define any path you want for the servlet and lets you specify which queue to use like this: Deferred.defer(task, "queueName");
(I needed this for my own purposes) Do with it as you wish :-) The only other major change I would make is to stop masking all the exceptions during the task processing. Or at least, if you're going to log the exception and stop propagation, log the whole thing so we get a stacktrace in the logs. Jeff On Fri, Nov 20, 2009 at 1:03 PM, David Chandler <[email protected]> wrote: > Vince, this is great! I hadn't been watching my own issue, so didn't > see this until now. Thanks so much! > > Only enhancement I would suggest is to enable multiple deferred > queues. For example. I would like to defer tasks in an email throttle > queue separately from a general background queue. Perhaps the > Deferrable interface could have a getQueueName() method, or > Deferred.defer could have an additional signature defer(Deferrable > task, String queueName). > > Thanks again, > /dmc -- 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 [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-java?hl=en.
Deferred.java
Description: Binary data
