From 317f6f35f3238806c1fe0f9101627c30cf677614 Mon Sep 17 00:00:00 2001 From: Ross Whitfield Date: Wed, 18 Sep 2024 15:47:45 +1000 Subject: [PATCH 1/4] Use existing is_acquisition_complete to determine if status run is still acquiring --- docker-compose.yml | 3 +++ src/webmon_app/reporting/report/view_util.py | 4 +++- src/webmon_app/reporting/templates/dasmon/run_summary.html | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index f4aacdcf..8134e69a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -105,6 +105,9 @@ services: activemq: image: apache/activemq-classic hostname: activemq + ports: + - 8161:8161 + - 61613:61613 volumes: - ./src/workflow_app/workflow/icat_activemq.xml:/opt/apache-activemq/conf/activemq.xml healthcheck: diff --git a/src/webmon_app/reporting/report/view_util.py b/src/webmon_app/reporting/report/view_util.py index d8dd0a2d..8655c113 100644 --- a/src/webmon_app/reporting/report/view_util.py +++ b/src/webmon_app/reporting/report/view_util.py @@ -386,7 +386,9 @@ def get_run_status_text(run_id, show_error=False, use_element_id=False): else: element_id = "" s = WorkflowSummary.objects.get(run_id=run_id) - if s.complete is True: + if not is_acquisition_complete(run_id): + status = "acquiring" % element_id + elif s.complete is True: status = "complete" % element_id else: last_error = run_id.last_error() diff --git a/src/webmon_app/reporting/templates/dasmon/run_summary.html b/src/webmon_app/reporting/templates/dasmon/run_summary.html index e719cb66..e558443d 100644 --- a/src/webmon_app/reporting/templates/dasmon/run_summary.html +++ b/src/webmon_app/reporting/templates/dasmon/run_summary.html @@ -83,6 +83,7 @@
Status: