From 727536b5632c8f568efd0f5354d8ac1748e0bad4 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 25 Apr 2025 09:36:01 +0200 Subject: Invocation http server: indicate incomplete data With just-mr supporting a custom prefix to be shown at the beginning of a logged invocation, users might be pointed to the web server very early. Therefore, properly indicate if the invocation data is not yet complete. --- doc/invocations-http-server/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 68955841..b8ea24d5 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -189,12 +189,14 @@ class InvocationServer: "entries": entries}) def do_get_invocation(self, invocation): - params = {"invocation": invocation} + params = {"invocation": invocation, + "have_profile": False} try: with open(os.path.join( self.logsdir, invocation, self.profile)) as f: profile = json.load(f) + params["have_profile"] = True except: profile = {} -- cgit v1.2.3