From a59f6e1569e36e19f3aa693be9495c02b547e796 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Sun, 30 Dec 2018 03:06:03 -0800 Subject: [PATCH] ignore tempuary files --- backfiller/backfiller/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backfiller/backfiller/main.py b/backfiller/backfiller/main.py index bfc627f..73895cd 100644 --- a/backfiller/backfiller/main.py +++ b/backfiller/backfiller/main.py @@ -166,6 +166,10 @@ def backfill_node(base_dir, node, stream, variants, hours=None, start=None, for missing_segment in missing_segments: + #ignore temporary files + if 'temp' in missing_segment: + continue + #to avoid getting in the downloader's way ignore segments less than recent_cutoff old time_str = '{}:{}'.format(hour, missing_segment.split('-')[0]) segment_time = datetime.datetime.strptime(time_str, HOUR_FMT + ':%M:%S.%f')