[ARVADOS] updated: 1.3.0-1515-gdce9a9c48

Git user git at public.curoverse.com
Tue Aug 13 19:41:43 UTC 2019


Summary of changes:
 tools/crunchstat-summary/crunchstat_summary/summarizer.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  dce9a9c4800a79d357fd6a8400b81c9b7404dbd5 (commit)
      from  30f8e85aaec08c0ee57453083acb3a6c56c8f4aa (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 dce9a9c4800a79d357fd6a8400b81c9b7404dbd5
Author: Tom Morris <tfmorris at veritasgenetics.com>
Date:   Tue Aug 13 15:40:16 2019 -0400

    Sanity check that we have a container request for this container
    
    Should never be empty, but just in case ...
    
    Refs #15486
    
    Arvados-DCO-1.1-Signed-off-by: Tom Morris <tfmorris at veritasgenetics.com>

diff --git a/tools/crunchstat-summary/crunchstat_summary/summarizer.py b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
index 6be548469..d99d3c1cf 100644
--- a/tools/crunchstat-summary/crunchstat_summary/summarizer.py
+++ b/tools/crunchstat-summary/crunchstat_summary/summarizer.py
@@ -502,7 +502,9 @@ def NewSummarizer(process_or_uuid, **kwargs):
     if '-dz642-' in uuid:
         if process is None:
             # Get the associated CR. Doesn't matter which since they all have the same logs
-            process = arv.container_requests().list(filters=[['container_uuid','=',uuid]],limit=1).execute()['items'][0]
+            crs = arv.container_requests().list(filters=[['container_uuid','=',uuid]],limit=1).execute()['items']
+            if len(crs) > 0:
+                process = crs[0]
         klass = ContainerRequestTreeSummarizer
     elif '-xvhdp-' in uuid:
         if process is None:

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list