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

Unified Diff: appengine/findit/model/base_swarming_task.py

Issue 2318363002: [Findit] Adding data model for capturing check flake analysis metadata (Closed)
Patch Set: Addressing comments Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/findit/model/flake/master_flake_analysis_data.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/model/base_swarming_task.py
diff --git a/appengine/findit/model/base_swarming_task.py b/appengine/findit/model/base_swarming_task.py
index d74c9851e0161ec9d64bc23590cf610b4a21ba18..3cbbe7afc232c89e10b64b365892079245dc1cc6 100644
--- a/appengine/findit/model/base_swarming_task.py
+++ b/appengine/findit/model/base_swarming_task.py
@@ -6,6 +6,7 @@ from google.appengine.ext import ndb
from model import analysis_status
+
class BaseSwarmingTask(ndb.Model):
"""Represents the progress of a general swarming task."""
# The id of the Swarming task scheduled or running on Swarming Server.
@@ -19,6 +20,14 @@ class BaseSwarmingTask(ndb.Model):
status = ndb.IntegerProperty(
default=analysis_status.PENDING, indexed=False)
+ # An error dict containing an error code and message should this task fail
+ # unexpectedly. For example:
+ # {
+ # 'code': 1,
+ # 'message': 'Timed out'
+ # }
+ error = ndb.JsonProperty(indexed=False)
+
# The revision of the failed build.
build_revision = ndb.StringProperty(indexed=False)
« no previous file with comments | « no previous file | appengine/findit/model/flake/master_flake_analysis_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698