diff options
Diffstat (limited to 'qc_app/parse.py')
-rw-r--r-- | qc_app/parse.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/qc_app/parse.py b/qc_app/parse.py index 2a33fd0..70ef551 100644 --- a/qc_app/parse.py +++ b/qc_app/parse.py @@ -40,11 +40,14 @@ def parse(): if errors: return redirect(url_for("entry.upload_file")) - with Redis.from_url(app.config["REDIS_URL"], decode_responses=True) as rconn: + redisurl = app.config["REDIS_URL"] + with Redis.from_url(redisurl, decode_responses=True) as rconn: job = jobs.launch_job( - rconn, filepath, filetype, app.config["REDIS_URL"], - f"{app.config['UPLOAD_FOLDER']}/job_errors", - app.config["JOBS_TTL_SECONDS"]) + jobs.build_file_verification_job( + rconn, filepath, filetype, redisurl, + app.config["JOBS_TTL_SECONDS"]), + redisurl, + f"{app.config['UPLOAD_FOLDER']}/job_errors") return redirect(url_for("parse.parse_status", job_id=job["job_id"])) |