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

Side by Side Diff: appengine/chromium_try_flakes/main.py

Issue 1660043002: Move flaky run processing into a taskqueue (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 10 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import gae_ts_mon 5 import gae_ts_mon
6 import os 6 import os
7 import sys 7 import sys
8 import webapp2 8 import webapp2
9 9
10 THIRD_PARTY_DIR = os.path.join(os.path.dirname(__file__), 'third_party') 10 THIRD_PARTY_DIR = os.path.join(os.path.dirname(__file__), 'third_party')
11 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'dateutil')) 11 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'dateutil'))
12 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'gae-pytz')) 12 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'gae-pytz'))
13 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'google-api-python-client')) 13 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'google-api-python-client'))
14 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'httplib2', 'python2')) 14 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'httplib2', 'python2'))
15 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'oauth2client')) 15 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'oauth2client'))
16 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'six')) 16 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'six'))
17 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'time_functions')) 17 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'time_functions'))
18 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'uritemplate')) 18 sys.path.insert(0, os.path.join(THIRD_PARTY_DIR, 'uritemplate'))
19 19
20 from handlers.cron_dispatch import CronDispatch 20 from handlers.cron_dispatch import CronDispatch
21 from handlers.index import Index 21 from handlers.index import Index
22 from handlers.post_comment import PostComment 22 from handlers.post_comment import PostComment
23 from handlers.all_flake_occurrences import AllFlakeOccurrences 23 from handlers.all_flake_occurrences import AllFlakeOccurrences
24 from handlers.search import Search 24 from handlers.search import Search
25 from handlers.flake_issues import ProcessIssue, UpdateIfStaleIssue 25 from handlers import flake_issues
26 26
27 handlers = [ 27 handlers = [
28 (r'/', Index), 28 (r'/', Index),
29 (r'/post_comment', PostComment), 29 (r'/post_comment', PostComment),
30 (r'/all_flake_occurrences', AllFlakeOccurrences), 30 (r'/all_flake_occurrences', AllFlakeOccurrences),
31 (r'/search', Search), 31 (r'/search', Search),
32 (r'/cron/(.*)', CronDispatch), 32 (r'/cron/(.*)', CronDispatch),
33 (r'/issues/process/(.*)', ProcessIssue), 33 (r'/issues/process/(.*)', flake_issues.ProcessIssue),
34 (r'/issues/update-if-stale/(.*)', UpdateIfStaleIssue), 34 (r'/issues/update-if-stale/(.*)', flake_issues.UpdateIfStaleIssue),
35 (r'/issues/create_flaky_run', flake_issues.CreateFlakyRun),
35 ] 36 ]
36 37
37 app = webapp2.WSGIApplication(handlers, debug=True) 38 app = webapp2.WSGIApplication(handlers, debug=True)
38 gae_ts_mon.initialize(app) 39 gae_ts_mon.initialize(app)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698