From 9ec26122b70e2653481833eb13a006a8fdeddc74 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 6 May 2025 17:47:20 +0200 Subject: Invocation server: include action count --- doc/invocations-http-server/server.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/invocations-http-server/server.py') diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py index e7969e6a..8c7e70ea 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -289,10 +289,17 @@ class InvocationServer: # longest running non-cached non-failed actions candidates = [] + action_count = 0 + action_count_cached = 0 for k, v in profile.get('actions', {}).items(): + action_count += 1 if not v.get('cached'): if v.get('exit code', 0) == 0: candidates.append((v.get('duration', 0.0), k, v)) + else: + action_count_cached += 1 + params["action_count"] = action_count + params["action_count_cached"] = action_count_cached candidates.sort(reverse=True) non_cached = [] params["more_noncached"] = None -- cgit v1.2.3