usage = description = epilog = None
else:
- usage = '%(prog)s [command] [-c CONFIG_FILE] [-d] [-v] [command options...]\n\n'
+ usage = '%(prog)s [command] [-c CONFIG_FILE] [-d] [-h] [-l] [-v] [command options...]\n\n'
description = 'available commands:\n'
description += ' startserver\n'
def start():
+ if not settings.THUMBNAILER_INTERVAL:
+ return
+
# schedule the first call a bit later to improve performance at startup
ioloop = tornado.ioloop.IOLoop.instance()
- ioloop.add_timeout(datetime.timedelta(seconds=30), _run_process)
+ ioloop.add_timeout(datetime.timedelta(seconds=min(settings.THUMBNAILER_INTERVAL, 30)), _run_process)
def stop():