Commit 21cc1fbd authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Rename JobStorage to DiskJobStorage

Reviewed-by: iustinp
parent 5ce81b28
...@@ -264,7 +264,7 @@ class _JobQueueWorkerPool(workerpool.WorkerPool): ...@@ -264,7 +264,7 @@ class _JobQueueWorkerPool(workerpool.WorkerPool):
self.context = context self.context = context
class JobStorage(object): class DiskJobStorage(object):
_RE_JOB_FILE = re.compile(r"^job-(%s)$" % constants.JOB_ID_TEMPLATE) _RE_JOB_FILE = re.compile(r"^job-(%s)$" % constants.JOB_ID_TEMPLATE)
def __init__(self): def __init__(self):
...@@ -513,7 +513,7 @@ class JobQueue: ...@@ -513,7 +513,7 @@ class JobQueue:
""" """
def __init__(self, context): def __init__(self, context):
self._lock = threading.Lock() self._lock = threading.Lock()
self._jobs = JobStorage() self._jobs = DiskJobStorage()
self._wpool = _JobQueueWorkerPool(context) self._wpool = _JobQueueWorkerPool(context)
for job in self._jobs.GetJobs(None): for job in self._jobs.GetJobs(None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment