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

Unified Diff: appengine/swarming/swarming_rpcs.py

Issue 2856733002: swarming: add transaction_id to tasks.new request
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/swarming_rpcs.py
diff --git a/appengine/swarming/swarming_rpcs.py b/appengine/swarming/swarming_rpcs.py
index 980d133c7704edf0eebe6b60e493e1b00b24d338..b7eed2043125fc6668347db578103092b15e5144 100644
--- a/appengine/swarming/swarming_rpcs.py
+++ b/appengine/swarming/swarming_rpcs.py
@@ -236,6 +236,15 @@ class NewTaskRequest(messages.Message):
# Will be but into "userdata" fields of PubSub message.
pubsub_userdata = messages.StringField(11)
+ # Global ID of the transaction to create a new task request.
+ # If specified and a task request with the same transaction id was created
+ # recently, the existing request will be returned as is.
+ # If two NewTaskRequests use the same transaction ID, requests must have all
+ # attributes equal.
+ #
+ # Transaction ID can be used to cancel this task request.
+ transaction_id = messages.StringField(12)
+
class TaskRequest(messages.Message):
"""Description of a task request as registered by the server."""

Powered by Google App Engine
This is Rietveld 408576698