| OLD | NEW |
| 1 # Copyright 2016 The LUCI Authors. All rights reserved. | 1 # Copyright 2016 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 """Utilities for parsing GCE Backend configuration.""" | 5 """Utilities for parsing GCE Backend configuration.""" |
| 6 | 6 |
| 7 import collections | 7 import collections |
| 8 import hashlib | 8 import hashlib |
| 9 import json | 9 import json |
| 10 import logging | 10 import logging |
| 11 | 11 |
| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 for instance_template in models.InstanceTemplate.query().fetch(): | 422 for instance_template in models.InstanceTemplate.query().fetch(): |
| 423 if instance_template.key.id() not in template_names: | 423 if instance_template.key.id() not in template_names: |
| 424 if instance_template.active: | 424 if instance_template.active: |
| 425 instance_template_keys.append(instance_template.key) | 425 instance_template_keys.append(instance_template.key) |
| 426 | 426 |
| 427 utilities.batch_process_async( | 427 utilities.batch_process_async( |
| 428 instance_template_keys, | 428 instance_template_keys, |
| 429 ensure_instance_template_revision_drained, | 429 ensure_instance_template_revision_drained, |
| 430 max_concurrent=max_concurrent, | 430 max_concurrent=max_concurrent, |
| 431 ) | 431 ) |
| OLD | NEW |