Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: infra/services/builder_alerts/__main__.py

Issue 2174233002: Add more logging to builder_alerts to see why metrics are not reported (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | infra/services/builder_alerts/crbug_issues.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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:]))
OLDNEW
« no previous file with comments | « no previous file | infra/services/builder_alerts/crbug_issues.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698