| 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 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 """Cron jobs for processing lease requests.""" | 5 """Cron jobs for processing lease requests.""" |
| 6 | 6 |
| 7 import datetime | 7 import datetime |
| 8 import time | 8 import time |
| 9 import logging | 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 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 create_subscription(machine_key) | 408 create_subscription(machine_key) |
| 409 | 409 |
| 410 | 410 |
| 411 def create_cron_app(): | 411 def create_cron_app(): |
| 412 return webapp2.WSGIApplication([ | 412 return webapp2.WSGIApplication([ |
| 413 ('/internal/cron/process-lease-requests', LeaseRequestProcessor), | 413 ('/internal/cron/process-lease-requests', LeaseRequestProcessor), |
| 414 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso
r), | 414 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso
r), |
| 415 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor), | 415 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor), |
| 416 ('/internal/cron/process-new-machines', NewMachineProcessor), | 416 ('/internal/cron/process-new-machines', NewMachineProcessor), |
| 417 ]) | 417 ]) |
| OLD | NEW |