diff options
| author | Frederick Muriuki Muriithi | 2022-06-02 11:12:38 +0300 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2022-06-02 12:56:28 +0300 |
| commit | 219248568252e7291f20105ce589c87c5a85f433 (patch) | |
| tree | 2145cbb97cdf54e2cc32f31027c024c8c336b45b /qc_app/parse.py | |
| parent | dfb56175278409fc56298890b1ca617d0e00992c (diff) | |
| download | gn-uploader-219248568252e7291f20105ce589c87c5a85f433.tar.gz | |
Expire the jobs in 14 days by default
Diffstat (limited to 'qc_app/parse.py')
| -rw-r--r-- | qc_app/parse.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qc_app/parse.py b/qc_app/parse.py index ec9962b..1a1b686 100644 --- a/qc_app/parse.py +++ b/qc_app/parse.py @@ -52,7 +52,8 @@ def parse(): with Redis.from_url(app.config["REDIS_URL"], decode_responses=True) as rconn: job = jobs.launch_job( rconn, filepath, filetype, app.config["REDIS_URL"], - f"{app.config['UPLOAD_FOLDER']}/job_errors") + f"{app.config['UPLOAD_FOLDER']}/job_errors", + app.config["JOBS_TTL_SECONDS"]) return redirect(url_for("parse.parse_status", job_id=job["job_id"])) |
