| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Cron jobs for processing lease requests.""" | 5 """Cron jobs for processing lease requests.""" |
| 6 | 6 |
| 7 import datetime | 7 import datetime |
| 8 import logging |
| 8 import time | 9 import time |
| 9 import logging | |
| 10 | 10 |
| 11 from google.appengine.api import taskqueue | 11 from google.appengine.api import taskqueue |
| 12 from google.appengine.ext import ndb | 12 from google.appengine.ext import ndb |
| 13 from protorpc.remote import protojson | 13 from protorpc.remote import protojson |
| 14 import webapp2 | 14 import webapp2 |
| 15 | 15 |
| 16 from components import decorators | 16 from components import decorators |
| 17 from components import utils | 17 from components import utils |
| 18 from components.machine_provider import rpc_messages | 18 from components.machine_provider import rpc_messages |
| 19 | 19 |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 create_subscription(machine_key) | 386 create_subscription(machine_key) |
| 387 | 387 |
| 388 | 388 |
| 389 def create_cron_app(): | 389 def create_cron_app(): |
| 390 return webapp2.WSGIApplication([ | 390 return webapp2.WSGIApplication([ |
| 391 ('/internal/cron/process-lease-requests', LeaseRequestProcessor), | 391 ('/internal/cron/process-lease-requests', LeaseRequestProcessor), |
| 392 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso
r), | 392 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso
r), |
| 393 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor), | 393 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor), |
| 394 ('/internal/cron/process-new-machines', NewMachineProcessor), | 394 ('/internal/cron/process-new-machines', NewMachineProcessor), |
| 395 ]) | 395 ]) |
| OLD | NEW |