Skip to content

Commit

Permalink
Upping createTilePackage failure count
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Jan 3, 2024
1 parent 5464a5a commit 0e1350d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/offlineTilePackages/createTilePackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export async function createTilePackage(packageId: string, client: DBClient) {
} else {
if (response.status < 500) {
failuresWithoutSuccess++;
if (failuresWithoutSuccess > 2000) {
if (failuresWithoutSuccess > 4000) {
throw new Error(
`Failed to retrieve tiles ${failuresWithoutSuccess} times without any successes. Last message = ${await response.text()}. Last url = ${url}`
);
Expand Down

0 comments on commit 0e1350d

Please sign in to comment.