aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-04 01:57:58 +0300
committerFrederick Muriuki Muriithi2024-04-04 01:57:58 +0300
commitc8cc1ed563ae17dcedaff7eb20bc708e2fea0d7e (patch)
tree01153448f55a99f13baaa20936b66f45d84969c0
parente3e75ae0e866d3571612b4b769ae5214bf8daf67 (diff)
downloadgn-uploader-c8cc1ed563ae17dcedaff7eb20bc708e2fea0d7e.tar.gz
Remove unused database connection.
-rw-r--r--scripts/qc_on_rqtl2_bundle.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/qc_on_rqtl2_bundle.py b/scripts/qc_on_rqtl2_bundle.py
index 45be4ae..7e77104 100644
--- a/scripts/qc_on_rqtl2_bundle.py
+++ b/scripts/qc_on_rqtl2_bundle.py
@@ -274,8 +274,7 @@ if __name__ == "__main__":
logger.setLevel("DEBUG")
fqjobid = jobs.job_key(args.redisprefix, args.jobid)
- with (database_connection(args.databaseuri) as _dbconn,
- Redis.from_url(args.redisuri, decode_responses=True) as rconn):
+ with Redis.from_url(args.redisuri, decode_responses=True) as rconn:
logger.addHandler(setup_redis_logger(
rconn, fqjobid, f"{fqjobid}:log-messages",
args.redisexpiry))