Skip to content

Commit

Permalink
caterpillar: do not retry on download_m3u8_file failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zmwangx committed Nov 10, 2018
1 parent ea79651 commit 5d0b573
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/caterpillar/caterpillar.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ def process_entry(
for ntry in range(max(retries, 0) + 1):
try:
if not download.download_m3u8_file(remote_m3u8_url, remote_m3u8_file):
raise RuntimeError(f"failed to download {remote_m3u8_url}")
# Return without retries because we already retried a
# couple of times in download_m3u8_file.
logger.critical(f"failed to download {remote_m3u8_url}")
return 1
logger.info(f"downloaded {remote_m3u8_file}")
if not download.download_m3u8_segments(
remote_m3u8_url,
Expand Down

0 comments on commit 5d0b573

Please sign in to comment.