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

Side by Side Diff: appengine/findit/model/base_swarming_task.py

Issue 2124973003: These are the database objects used while finding the regression range. 1/3 (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Addressed comments Created 4 years, 5 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
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from collections import defaultdict
6
7 from google.appengine.ext import ndb
8
9 from model import analysis_status
10
11 class BaseSwarmingTask(ndb.Model):
12 """Represents the progress of a general swarming task.
13 """
14 # The id of the Swarming task scheduled or running on Swarming Server.
15 task_id = ndb.StringProperty(indexed=True)
16
17 # A dict to keep track of running information for each test:
18 # number of total runs, number of each status (such as 'SUCCESS' or 'FAILED')
19 tests_statuses = ndb.JsonProperty(default={}, indexed=False, compressed=True)
chanli 2016/07/19 19:12:20 This kind of default may lead to some unexpected p
caiw 2016/07/19 19:36:09 I just removed it (approach 1). I think it should
20
21 # The status of the swarming task.
22 status = ndb.IntegerProperty(
23 default=analysis_status.PENDING, indexed=False)
24
25 # The revision of the failed build.
26 build_revision = ndb.StringProperty(indexed=False)
27
28 # Time when the task is created.
29 created_time = ndb.DateTimeProperty(indexed=True)
30 # Time when the task is started.
31 started_time = ndb.DateTimeProperty(indexed=False)
32 # Time when the task is completed.
33 completed_time = ndb.DateTimeProperty(indexed=False)
34
35 # parameters need to be stored and analyzed later.
36 parameters = ndb.JsonProperty(default={}, indexed=False, compressed=True)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698