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

Unified Diff: appengine/findit/handlers/trigger_analyses.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/handlers/triage_analysis.py ('k') | appengine/findit/main.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/trigger_analyses.py
diff --git a/appengine/findit/handlers/trigger_analyses.py b/appengine/findit/handlers/trigger_analyses.py
index 6ba8bdf8937fa3e7f5c6ab11d6fea82b553fba03..86a4f3e1736e9b25987ff563ab00eb521705cce4 100644
--- a/appengine/findit/handlers/trigger_analyses.py
+++ b/appengine/findit/handlers/trigger_analyses.py
@@ -6,15 +6,13 @@ import json
from base_handler import BaseHandler
from base_handler import Permission
+from common import constants
from common.http_client_appengine import HttpClientAppengine
from waterfall import buildbot
from waterfall import build_failure_analysis_pipelines
from waterfall import build_util
-_BUILD_FAILURE_ANALYSIS_TASKQUEUE = 'build-failure-analysis-queue'
-
-
def _TriggerNewAnalysesOnDemand(builds):
for build in builds:
master_name = build['master_name']
@@ -35,7 +33,7 @@ def _TriggerNewAnalysesOnDemand(builds):
build_failure_analysis_pipelines.ScheduleAnalysisIfNeeded(
master_name, builder_name, build_number, failed_steps=failed_steps,
build_completed=build_info.completed,
- force=False, queue_name=_BUILD_FAILURE_ANALYSIS_TASKQUEUE)
+ force=False, queue_name=constants.WATERFALL_ANALYSIS_QUEUE)
class TriggerAnalyses(BaseHandler):
« no previous file with comments | « appengine/findit/handlers/triage_analysis.py ('k') | appengine/findit/main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698