| OLD | NEW |
| 1 # Copyright 2014 The Swarming Authors. All rights reserved. | 1 # Copyright 2014 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 """This module defines Isolate Server frontend url handlers.""" | 5 """This module defines Isolate Server frontend url handlers.""" |
| 6 | 6 |
| 7 import binascii | 7 import binascii |
| 8 import datetime | 8 import datetime |
| 9 import hashlib | 9 import hashlib |
| 10 import logging | 10 import logging |
| 11 import os | 11 import os |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 Returns: | 527 Returns: |
| 528 the enqueued task if there were existing entries; None otherwise | 528 the enqueued task if there were existing entries; None otherwise |
| 529 """ | 529 """ |
| 530 if collection.items: | 530 if collection.items: |
| 531 url = '/internal/taskqueue/tag/%s/%s' % ( | 531 url = '/internal/taskqueue/tag/%s/%s' % ( |
| 532 collection.namespace.namespace, | 532 collection.namespace.namespace, |
| 533 utils.datetime_to_timestamp(utils.utcnow())) | 533 utils.datetime_to_timestamp(utils.utcnow())) |
| 534 payload = ''.join( | 534 payload = ''.join( |
| 535 binascii.unhexlify(digest.digest) for digest in collection.items) | 535 binascii.unhexlify(digest.digest) for digest in collection.items) |
| 536 return utils.enqueue_task(url, 'tag', payload=payload) | 536 return utils.enqueue_task(url, 'tag', payload=payload) |
| OLD | NEW |