[ARVADOS] updated: 1.1.4-178-g35e38be
Git user
git at public.curoverse.com
Mon Apr 30 16:38:08 EDT 2018
Summary of changes:
tools/crunchstat-summary/crunchstat_summary/reader.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
via 35e38be698e44bbe8cbf036293edaf5dce029396 (commit)
from d862a83eb3367bb8118b06d9d0541ee5db3f46cd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 35e38be698e44bbe8cbf036293edaf5dce029396
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Mon Apr 30 16:37:12 2018 -0400
Fix wrong event_type when getting buffered live logs for crunch2.
refs #12690
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/tools/crunchstat-summary/crunchstat_summary/reader.py b/tools/crunchstat-summary/crunchstat_summary/reader.py
index e8f0861..98dda67 100644
--- a/tools/crunchstat-summary/crunchstat_summary/reader.py
+++ b/tools/crunchstat-summary/crunchstat_summary/reader.py
@@ -46,8 +46,9 @@ class LiveLogReader(object):
EOF = None
def __init__(self, job_uuid):
- logger.debug('load stderr events for job %s', job_uuid)
self.job_uuid = job_uuid
+ self.event_types = (['stderr'] if '-8i9sb-' in job_uuid else ['crunchstat', 'arv-mount'])
+ logger.debug('load %s events for job %s', self.event_types, self.job_uuid)
def __str__(self):
return self.job_uuid
@@ -57,7 +58,7 @@ class LiveLogReader(object):
last_id = 0
filters = [
['object_uuid', '=', self.job_uuid],
- ['event_type', '=', 'stderr']]
+ ['event_type', 'in', self.event_types]]
try:
while True:
page = arvados.api().logs().index(
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list