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) {
}
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.