Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: service/taskqueue/interface.go

Issue 1335083002: Add emulation of transaction retries to memory impl of RunInTransaction. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: add Testable() to non-Raw interfaces Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « service/datastore/testable.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package taskqueue 5 package taskqueue
6 6
7 // Interface is the full interface to the Task Queue service. 7 // Interface is the full interface to the Task Queue service.
8 type Interface interface { 8 type Interface interface {
9 // NewTask simply creates a new Task object with the Path field populate d. 9 // NewTask simply creates a new Task object with the Path field populate d.
10 // The path parameter may be blank, if you want to use the default task path 10 // The path parameter may be blank, if you want to use the default task path
(...skipping 22 matching lines...) Expand all
33 // processing multiple work items at a time. 33 // processing multiple work items at a time.
34 // 34 //
35 // Lease would also take care of calling ModifyLease as necessary to ens ure 35 // Lease would also take care of calling ModifyLease as necessary to ens ure
36 // that each call to cb would have 'duration' amount of time to work on the 36 // that each call to cb would have 'duration' amount of time to work on the
37 // task, as well as releasing as many leased tasks as it can on a failur e. 37 // task, as well as releasing as many leased tasks as it can on a failur e.
38 38
39 Purge(queueName string) error 39 Purge(queueName string) error
40 40
41 Stats(queueNames ...string) ([]Statistics, error) 41 Stats(queueNames ...string) ([]Statistics, error)
42 42
43 Testable() Testable
44
43 Raw() RawInterface 45 Raw() RawInterface
44 } 46 }
OLDNEW
« no previous file with comments | « service/datastore/testable.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698