[arvados] updated: 2.7.0-6268-g2b6b5e2a34
git repository hosting
git at public.arvados.org
Tue Apr 30 18:13:19 UTC 2024
Summary of changes:
tools/cluster-activity/arvados_cluster_activity/main.py | 6 ++++++
1 file changed, 6 insertions(+)
via 2b6b5e2a342949a56afc10b16c7bb3749727150f (commit)
from 076dfd6c06d56e8cf99afdf4dc8a8b22beb87bdf (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 2b6b5e2a342949a56afc10b16c7bb3749727150f
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue Apr 30 14:13:02 2024 -0400
21121: Filter out zero cost (reused)
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 a68bbc8b56..9c21759cbc 100755
--- a/tools/cluster-activity/arvados_cluster_activity/main.py
+++ b/tools/cluster-activity/arvados_cluster_activity/main.py
@@ -252,6 +252,9 @@ def flush_containers(arv_client, csvwriter, pending, include_steps):
],
select=["uuid", "name", "cumulative_cost", "requesting_container_uuid", "container_uuid"]):
+ if cr["cumulative_cost"] == 0:
+ continue
+
g = name_regex.fullmatch(cr["name"])
if g:
cr["name"] = g[1]
@@ -311,6 +314,9 @@ def report_from_api(since, to, out, include_steps):
],
select=["uuid", "owner_uuid", "container_uuid", "name", "cumulative_cost", "properties", "modified_by_user_uuid", "created_at"]):
+ if container_request["cumulative_cost"] == 0:
+ continue
+
if len(pending) < 1000:
pending.append(container_request)
else:
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list