start making the server that will periodicly scrub
This commit is contained in:
parent
8cbfca5aa1
commit
33c921a261
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user