Skip to content

Commit

Permalink
Don't connect/initialize datastore until we actually need it
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Foster committed Jul 23, 2012
1 parent 593af35 commit 383debd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyon/util/queueblame_plugin.py
Expand Up @@ -8,7 +8,6 @@ def __init__(self):
from pyon.datastore.couchdb.couchdb_standalone import CouchDataStore
import uuid
self.ds_name = "queueblame-%s" % str(uuid.uuid4())[0:6]
self.ds = CouchDataStore(datastore_name=self.ds_name)

from collections import defaultdict
self.queues_by_test = defaultdict(lambda: defaultdict(dict))
Expand All @@ -29,7 +28,7 @@ def configure(self, options, conf):
self._queueblame_trim = options.queueblame_trim

def begin(self):
pass
self.ds = CouchDataStore(datastore_name=self.ds_name)

def finalize(self, result):
self.ds.delete_datastore()
Expand Down

0 comments on commit 383debd

Please sign in to comment.