hello.
I have a question concerning transactional tasks.
it's written in the documenation "Transactional tasks must not have 
user-specified names"
(see 
https://cloud.google.com/appengine/docs/java/taskqueue/#Java_Tasks_within_transactions
 
<https://cloud.google.com/appengine/docs/java/taskqueue/#Java_Tasks_within_transactions>
)
(https://cloud.google.com/appengine/docs/java/datastore/transactions#Java_Transactional_task_enqueuing
 
<https://cloud.google.com/appengine/docs/java/datastore/transactions#Java_Transactional_task_enqueuing>
)

my question is: when I do 








*DatastoreService ds = DatastoreServiceFactory.getDatastoreService();Queue 
queue = QueueFactory.getDefaultQueue();try {    Transaction txn = 
ds.beginTransaction();    // ...    *





*TaskHandle taskHandle = 
queue.add(TaskOptions.Builder.withUrl("/path/to/my/worker").countdownMillis(10000));
    taskHandle.getName();    // ...    txn.commit();} catch 
(DatastoreFailureException e) {}*


does the "taskHandle.getName();" return something in this exemple?
if not how is it possible to later delete the task from the queue? (if the 
task has not yet been executed?)
thank you.


-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7705a160-08c3-442d-a3fb-2a6bf18a7665%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to