pass in a wakeup_time for the default time between database hits

This commit is contained in:
Jason Kölker 2011-06-09 16:42:34 -05:00
parent 33c921a261
commit 0f88cfce25
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,9 @@ log_file = /var/log/glance/scrubber.log
# Delayed delete time in seconds
scrub_time = 43200
# Loop time between checking the db for new items to schedule for delete
wakeup_time = 300
# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine

View File

@ -25,7 +25,7 @@ from glance.common import config
logger = logging.getLogger('glance.store.scrub')
class Server(object):
def __init__(self):
def __init__(self, wakeup_time=300):
pass
class Scrubber(object):