diff options
author | Frederick Muriuki Muriithi | 2022-04-26 09:43:18 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-26 09:43:18 +0300 |
commit | e6895f5bac672d2e1d2a04fe8118fa55c3a40b91 (patch) | |
tree | 3597796b13b3b321c8670aa71b080eabf3357b60 /qc_app/templates/no_such_job.html | |
parent | a5477c59452cdb01ab536f11eb5ed6fab015f3af (diff) | |
download | gn-uploader-e6895f5bac672d2e1d2a04fe8118fa55c3a40b91.tar.gz |
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
Diffstat (limited to 'qc_app/templates/no_such_job.html')
-rw-r--r-- | qc_app/templates/no_such_job.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qc_app/templates/no_such_job.html b/qc_app/templates/no_such_job.html new file mode 100644 index 0000000..42a2d48 --- /dev/null +++ b/qc_app/templates/no_such_job.html @@ -0,0 +1,14 @@ +{%extends "base.html"%} + +{%block extrameta%} +<meta http-equiv="refresh" content="5;url={{url_for('entry.upload_file')}}"> +{%endblock%} + +{%block title%}No Such Job{%endblock%} + +{%block contents%} +<h1 class="heading">No Such Job: {{job_id}}</h2> + +<p>No job, with the id '<em>{{job_id}}</em>' was found!</p> + +{%endblock%} |