Skip to content

Commit

Permalink
Transaction Sample update (#944)
Browse files Browse the repository at this point in the history
1. An example that shows queue add w/ transactions should actually use
the transaction.
  • Loading branch information
lesv authored Dec 6, 2017
1 parent 592b8b3 commit ce46eea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void transactionalTaskEnqueuing() throws Exception {
Transaction txn = datastore.beginTransaction();
// ...

queue.add(TaskOptions.Builder.withUrl("/path/to/handler"));
queue.add(txn, TaskOptions.Builder.withUrl("/path/to/handler"));

// ...

Expand Down

0 comments on commit ce46eea

Please sign in to comment.