| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Main entry point for Swarming backend handlers.""" | 5 """Main entry point for Swarming backend handlers.""" |
| 6 | 6 |
| 7 import json | 7 import json |
| 8 import logging | 8 import logging |
| 9 | 9 |
| 10 import webapp2 | 10 import webapp2 |
| 11 from google.appengine.api import app_identity | 11 from google.appengine.api import app_identity |
| 12 from google.appengine.api import datastore_errors | 12 from google.appengine.api import datastore_errors |
| 13 from google.appengine.api import taskqueue | 13 from google.appengine.api import taskqueue |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 ('/internal/taskqueue/cleanup_data', TaskCleanupDataHandler), | 158 ('/internal/taskqueue/cleanup_data', TaskCleanupDataHandler), |
| 159 (r'/internal/taskqueue/pubsub/<task_id:[0-9a-f]+>', TaskSendPubSubMessage), | 159 (r'/internal/taskqueue/pubsub/<task_id:[0-9a-f]+>', TaskSendPubSubMessage), |
| 160 ('/internal/taskqueue/pubsub/machine_provider', | 160 ('/internal/taskqueue/pubsub/machine_provider', |
| 161 TaskMachineProviderPubSubHandler), | 161 TaskMachineProviderPubSubHandler), |
| 162 | 162 |
| 163 # Mapreduce related urls. | 163 # Mapreduce related urls. |
| 164 (r'/internal/taskqueue/mapreduce/launch/<job_id:[^\/]+>', | 164 (r'/internal/taskqueue/mapreduce/launch/<job_id:[^\/]+>', |
| 165 InternalLaunchMapReduceJobWorkerHandler), | 165 InternalLaunchMapReduceJobWorkerHandler), |
| 166 ] | 166 ] |
| 167 return [webapp2.Route(*a) for a in routes] | 167 return [webapp2.Route(*a) for a in routes] |
| OLD | NEW |