From 772872452dc98b9919a861c017347e88a6536063 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 14 Jul 2022 14:20:51 +0300 Subject: 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. --- qc_app/jobs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qc_app/jobs.py') 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, -- cgit v1.2.3