Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

fetch_listing by locale in lambda should retry on 404, fixes #424 #449

Merged
merged 1 commit into from
May 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions jobs/buildhub/lambda_s3_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ async def main(loop, event):
l10n_parent_url = re.sub('en-US/.+$', '', url)
l10n_folders, _ = await fetch_listing(
session,
l10n_parent_url
l10n_parent_url,
retry_on_notfound=True,
)
for locale in l10n_folders:
_, files = await fetch_listing(
session,
l10n_parent_url + locale
l10n_parent_url + locale,
retry_on_notfound=True,
)
for f in files:
rc_url = l10n_parent_url + locale + f['name']
Expand Down