From e6895f5bac672d2e1d2a04fe8118fa55c3a40b91 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 26 Apr 2022 09:43:18 +0300 Subject: Queue file parsing jobs Enable the queuing of file parsing jobs, since the files could be really large and take a long time to parse and present results. * etc/default_config.py: Add default config for redis server * manifest.scm: Add redis, and rq as dependencies * qc_app/__init__.py * qc_app/jobs.py: module to hold utilities for management of the jobs * qc_app/parse.py: Enqueue the job - extract file-parsing code to callable function * qc_app/templates/base.html: Enable addition of extra meta tags * qc_app/templates/job_progress.html: template to display job progress * qc_app/templates/no_such_job.html: template to indicate when a job id is invalid * quality_control/parsing.py: Add the total size parsed so far --- qc_app/templates/job_progress.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 qc_app/templates/job_progress.html (limited to 'qc_app/templates/job_progress.html') diff --git a/qc_app/templates/job_progress.html b/qc_app/templates/job_progress.html new file mode 100644 index 0000000..1c6aa32 --- /dev/null +++ b/qc_app/templates/job_progress.html @@ -0,0 +1,19 @@ +{%extends "base.html"%} + +{%block extrameta%} + +{%endblock%} + +{%block title%}Job Status{%endblock%} + +{%block contents%} +

{{job_name}}

+ + +{{job_status}}
+ + +{{progress}} +{{"%.2f" | format(progress)}}% + +{%endblock%} -- cgit v1.2.3