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

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: Rebase to resolve conflict 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 from waterfall.flake import triggering_sources
12
13
14 class ProcessFlakeAnalysisRequest(BaseHandler):
15 """Processes request of flake analysis and triggers the analysis on demand."""
16
17 PERMISSION_LEVEL = Permission.ADMIN
18
19 def HandlePost(self):
20 flake_analysis_request, user_email, is_admin = pickle.loads(
21 self.request.body)
22
23 flake_analysis_service.ScheduleAnalysisForFlake(
24 flake_analysis_request, user_email, is_admin,
25 triggering_sources.FINDIT_API)
OLDNEW
« no previous file with comments | « appengine/findit/findit_api.py ('k') | appengine/findit/handlers/test/process_flake_analysis_request_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698