diff options
author | Frederick Muriuki Muriithi | 2022-07-14 14:20:51 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-07-19 05:08:17 +0300 |
commit | 772872452dc98b9919a861c017347e88a6536063 (patch) | |
tree | f5edcf89ee9a8b8b2a754ae0b02c8a0442765903 /qc_app | |
parent | 1711bbad1409a4def4099d8721deb894a0d5e21c (diff) | |
download | gn-uploader-772872452dc98b9919a861c017347e88a6536063.tar.gz |
Rename file validation script
As preparation for building a new generic worker script, this commit
renames the file validation script from 'worker.py' to
'validate_file.py' so as to ensure the name conforms better to what
the script does.
Diffstat (limited to 'qc_app')
-rw-r--r-- | qc_app/jobs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qc_app/jobs.py b/qc_app/jobs.py index 275f9c8..8c93e9f 100644 --- a/qc_app/jobs.py +++ b/qc_app/jobs.py @@ -17,7 +17,9 @@ def launch_job(# pylint: disable=[too-many-arguments] """Launch a job in the background""" job_id = str(uuid4()) command = [ - "python3", "-m", "scripts.worker", filetype, filepath, redisurl, job_id] + "python3", "-m", "scripts.validate_file", filetype, filepath, redisurl, + job_id + ] the_job = { "job_id": job_id, "command": shlex.join(command), "status": "pending", "filename": os.path.basename(filepath), "percent": 0, |