OLD | NEW |
1 # Copyright 2015 The Swarming 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 by the Apache v2.0 license that can be |
3 # found in the LICENSE file. | 3 # 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 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 create_subscription(machine_key) | 401 create_subscription(machine_key) |
402 | 402 |
403 | 403 |
404 def create_cron_app(): | 404 def create_cron_app(): |
405 return webapp2.WSGIApplication([ | 405 return webapp2.WSGIApplication([ |
406 ('/internal/cron/process-lease-requests', LeaseRequestProcessor), | 406 ('/internal/cron/process-lease-requests', LeaseRequestProcessor), |
407 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso
r), | 407 ('/internal/cron/process-machine-reclamations', MachineReclamationProcesso
r), |
408 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor), | 408 ('/internal/cron/process-lease-releases', LeaseReleaseProcessor), |
409 ('/internal/cron/process-new-machines', NewMachineProcessor), | 409 ('/internal/cron/process-new-machines', NewMachineProcessor), |
410 ]) | 410 ]) |
OLD | NEW |