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

Side by Side Diff: appengine/findit/handlers/process_flake_analysis_request.py

Issue 2435983003: [Findit] Asynchronously process flake reports from chromium-try-flakes. (Closed)
Patch Set: fix nit. Created 4 years, 2 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 import logging
6 import pickle
7
8 from common.base_handler import BaseHandler
9 from common.base_handler import Permission
10 from waterfall.flake import flake_analysis_service
11
12
13 class ProcessFlakeAnalysisRequest(BaseHandler):
14 """Processes request of flake analysis and triggers the analysis on demand."""
15
16 PERMISSION_LEVEL = Permission.ADMIN
17
18 def HandlePost(self):
19 flake_analysis_request, user_email, is_admin = pickle.loads(
20 self.request.body)
21
22 flake_analysis_service.ScheduleAnalysisForFlake(
23 flake_analysis_request, user_email, is_admin)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698