diff --git a/transfer_service/config/vos_ts.conf.sample b/transfer_service/config/vos_ts.conf.sample index 2ef985963d152c0343dfb3261734affc0ec834f4..b742294855c6c8a79672352d96eaae28119216f0 100644 --- a/transfer_service/config/vos_ts.conf.sample +++ b/transfer_service/config/vos_ts.conf.sample @@ -24,7 +24,7 @@ password = postgres # Redis [job_cache] ; hostname or IP address of the machine that hosts the Redis cache system -host = job_cache +host = localhost ; port at which the cache service is available, default is 6379 TCP port = 6379 ; db index representing the db that stores the scheduling queues, default is 0 diff --git a/transfer_service/db_connector.py b/transfer_service/db_connector.py index 3817c6f5d52cb0cb04f65f3e6171550324302dd4..d8080afa8028a1e49f9b8478b244436c029e0208 100644 --- a/transfer_service/db_connector.py +++ b/transfer_service/db_connector.py @@ -12,7 +12,6 @@ import psycopg2 import sys import time -from contextlib import contextmanager from psycopg2.extras import RealDictCursor from psycopg2.pool import ThreadedConnectionPool