about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--qc_app/jobs.py4
-rw-r--r--scripts/validate_file.py (renamed from scripts/worker.py)2
2 files changed, 4 insertions, 2 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,
diff --git a/scripts/worker.py b/scripts/validate_file.py
index c6e989f..9f0a561 100644
--- a/scripts/worker.py
+++ b/scripts/validate_file.py
@@ -1,4 +1,4 @@
-"""External worker script"""
+"""External worker script that checks file for correctness"""
 import os
 import sys
 import traceback