pass in a wakeup_time for the default time between database hits
This commit is contained in:
parent
33c921a261
commit
0f88cfce25
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user