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

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

Issue 1866883002: [Findit] A huge refactoring and some bug fixing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix nit. Created 4 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
« no previous file with comments | « appengine/findit/model/wf_swarming_task.py ('k') | appengine/findit/queue.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/model/wf_try_job.py
diff --git a/appengine/findit/model/wf_try_job.py b/appengine/findit/model/wf_try_job.py
index c3b9f7ee471415d22825823ddbbf87ea871faf8d..a5f0b87c6ec3702659b206ffece4f3f849134e47 100644
--- a/appengine/findit/model/wf_try_job.py
+++ b/appengine/findit/model/wf_try_job.py
@@ -5,7 +5,7 @@
from google.appengine.ext import ndb
from model.base_build_model import BaseBuildModel
-from model import wf_analysis_status
+from model import analysis_status
class WfTryJob(BaseBuildModel):
@@ -21,7 +21,7 @@ class WfTryJob(BaseBuildModel):
# The status of the try job.
status = ndb.IntegerProperty(
- default=wf_analysis_status.PENDING, indexed=False)
+ default=analysis_status.PENDING, indexed=False)
# A list of try job IDs associated with each try job for collecting metadata.
try_job_ids = ndb.JsonProperty(default=[], indexed=False, compressed=True)
@@ -45,8 +45,8 @@ class WfTryJob(BaseBuildModel):
@property
def completed(self):
return self.status in (
- wf_analysis_status.ANALYZED, wf_analysis_status.ERROR)
+ analysis_status.COMPLETED, analysis_status.ERROR)
@property
def failed(self):
- return self.status == wf_analysis_status.ERROR
+ return self.status == analysis_status.ERROR
« no previous file with comments | « appengine/findit/model/wf_swarming_task.py ('k') | appengine/findit/queue.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698