| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import argparse | 6 import argparse |
| 7 import contextlib | 7 import contextlib |
| 8 import cStringIO | 8 import cStringIO |
| 9 import datetime | 9 import datetime |
| 10 import gzip | 10 import gzip |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 _ConnectionpoolFilter()) | 420 _ConnectionpoolFilter()) |
| 421 | 421 |
| 422 def outer_loop_iteration(): | 422 def outer_loop_iteration(): |
| 423 return inner_loop(args) | 423 return inner_loop(args) |
| 424 | 424 |
| 425 loop_results = outer_loop.loop( | 425 loop_results = outer_loop.loop( |
| 426 task=outer_loop_iteration, | 426 task=outer_loop_iteration, |
| 427 sleep_timeout=lambda: 5, | 427 sleep_timeout=lambda: 5, |
| 428 **loop_args) | 428 **loop_args) |
| 429 | 429 |
| 430 logging.debug('Flushing ts_mon starting') |
| 430 ts_mon.flush() | 431 ts_mon.flush() |
| 432 logging.debug('Flushing ts_mon completed') |
| 431 return 0 if loop_results.success else 1 | 433 return 0 if loop_results.success else 1 |
| 432 | 434 |
| 433 | 435 |
| 434 if __name__ == '__main__': | 436 if __name__ == '__main__': |
| 435 sys.exit(main(sys.argv[1:])) | 437 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |