OLD | NEW |
1 # coding=utf-8 | 1 # coding=utf-8 |
2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 """This module defines Isolate Server model(s).""" | 6 """This module defines Isolate Server model(s).""" |
7 | 7 |
8 import datetime | 8 import datetime |
9 import hashlib | 9 import hashlib |
10 import logging | 10 import logging |
11 import random | 11 import random |
12 import zlib | 12 import zlib |
13 | 13 |
14 from google.appengine.api import memcache | 14 from google.appengine.api import memcache |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 while futures: | 259 while futures: |
260 try: | 260 try: |
261 f = ndb.Future.wait_any(futures) | 261 f = ndb.Future.wait_any(futures) |
262 # This is synchronous. | 262 # This is synchronous. |
263 gcs.delete_file(bucket, futures.pop(f), ignore_missing=True) | 263 gcs.delete_file(bucket, futures.pop(f), ignore_missing=True) |
264 except Exception as exc: | 264 except Exception as exc: |
265 continue | 265 continue |
266 | 266 |
267 if exc: | 267 if exc: |
268 raise exc # pylint: disable=raising-bad-type | 268 raise exc # pylint: disable=raising-bad-type |
OLD | NEW |