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):
self.context = context
class JobStorage(object):
class DiskJobStorage(object):
_RE_JOB_FILE = re.compile(r"^job-(%s)$" % constants.JOB_ID_TEMPLATE)
def __init__(self):
......@@ -513,7 +513,7 @@ class JobQueue:
"""
def __init__(self, context):
self._lock = threading.Lock()
self._jobs = JobStorage()
self._jobs = DiskJobStorage()
self._wpool = _JobQueueWorkerPool(context)
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