added warnings if keeping fewer hours than backfilling

pull/129/head
Christopher Usher 5 years ago
parent 9d81569d98
commit be562b8448

@ -499,9 +499,13 @@ def main(channels, base_dir='.', qualities='source', metrics_port=8002,
try:
start = float(start)
logging.info('Backfilling last {} hours'.format(start))
if delete_before and start > delete_before:
logging.warn('Keeping fewer hours ({}) than backfilling ({})'.format(delete_before, start))
except ValueError:
start = dateutil.parse(start)
logging.info('Backfilling since {}'.format(start))
logging.info('Backfilling since {}'.format(start))
if delete_before:
logging.warn('Only keeping {} hours when backfilling since {}'.format(delete_before, start))
common.PromLogCountsHandler.install()
common.install_stacksampler()

Loading…
Cancel
Save