start making the server that will periodicly scrub

This commit is contained in:
Jason Kölker 2011-06-09 16:37:31 -05:00
parent 8cbfca5aa1
commit 33c921a261
2 changed files with 17 additions and 2 deletions

View File

@ -25,3 +25,6 @@ sql_connection = sqlite:///glance.sqlite
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
# before MySQL can drop the connection.
sql_idle_timeout = 3600
[app:glance-scrubber]
paste.app_factory = glance.store.scrubber:app_factory

View File

@ -16,6 +16,7 @@
# under the License.
import eventlet
import logging
from glance import registry
from glance.common import config
@ -23,6 +24,17 @@ from glance.common import config
logger = logging.getLogger('glance.store.scrub')
def scrub(options):
pass
class Server(object):
def __init__(self):
pass
class Scrubber(object):
def __init__(self, options):
pass
def app_factory(global_config, **local_conf):
conf = global_config.copy()
conf.update(local_conf)
return Scrubber(conf)