[arvados] updated: 2.7.0-6267-g076dfd6c06

git repository hosting git at public.arvados.org
Tue Apr 30 17:49:48 UTC 2024


Summary of changes:
 tools/cluster-activity/arvados_cluster_activity/main.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

       via  076dfd6c06d56e8cf99afdf4dc8a8b22beb87bdf (commit)
      from  70e6db97625e85c5b8fa2750a930c36aeeefa8ba (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 076dfd6c06d56e8cf99afdf4dc8a8b22beb87bdf
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Tue Apr 30 13:49:30 2024 -0400

    21121: Fix logging
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/tools/cluster-activity/arvados_cluster_activity/main.py b/tools/cluster-activity/arvados_cluster_activity/main.py
index 1be7e9d3a6..a68bbc8b56 100755
--- a/tools/cluster-activity/arvados_cluster_activity/main.py
+++ b/tools/cluster-activity/arvados_cluster_activity/main.py
@@ -315,10 +315,12 @@ def report_from_api(since, to, out, include_steps):
             pending.append(container_request)
         else:
             count += len(pending)
-            logging.info("Exporting rows, %s", count)
+            logging.info("Exporting workflow runs %s - %s", count-len(pending), count)
             flush_containers(arv_client, csvwriter, pending, include_steps)
             pending.clear()
 
+    count += len(pending)
+    logging.info("Exporting workflow runs %s - %s", count-len(pending), count)
     flush_containers(arv_client, csvwriter, pending, include_steps)
 
 def main(arguments=None):
@@ -327,6 +329,8 @@ def main(arguments=None):
 
     args, since, to = parse_arguments(arguments)
 
+    logging.getLogger().setLevel(logging.INFO)
+
     if prometheus_support:
         if "PROMETHEUS_HOST" in os.environ:
             if args.cluster:

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list