From 19c376c4b60592f4bba0e26952faa3a71b6f5641 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 5 Aug 2022 10:10:56 +0300 Subject: Update job status. Display stdout and stderr outputs * Display the status of the job, as it is running * Display STDERR output if an error occurs * Display STDOUT output as job is running and on successful completion of the job --- qc_app/templates/insert_progress.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'qc_app/templates') diff --git a/qc_app/templates/insert_progress.html b/qc_app/templates/insert_progress.html index 1ac6212..52beaa4 100644 --- a/qc_app/templates/insert_progress.html +++ b/qc_app/templates/insert_progress.html @@ -1,4 +1,5 @@ {%extends "base.html"%} +{%from "stdout_output.html" import stdout_output%} {%block extrameta%} @@ -7,18 +8,16 @@ {%block title%}Job Status{%endblock%} {%block contents%} -

{{job_name}}

+

{{job_name}}

{{job_status}}: {{message}}
-{{job}} {{job["percent"]}} {{"%.2f" | format(job['percent'] | float)}}% -
- {{job.stderr}} -
+ +{{stdout_output(job)}} {%endblock%} -- cgit v1.2.3