Skip to content

Commit

Permalink
Merge pull request #1896 from Automattic/fix/scan
Browse files Browse the repository at this point in the history
fix(dev-env): retry healthcheck only on 502 and 504 status codes
  • Loading branch information
sjinks authored Jun 20, 2024
2 parents ebaaa51 + de6ff8f commit 52d5027
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/dev-environment/dev-environment-lando.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ export async function checkEnvHealth(
}

if ( urlsToScan.length ) {
scanResults = scanResults.concat( await app.scanUrls( urlsToScan, { max: 1 } ) );
scanResults = scanResults.concat(
await app.scanUrls( urlsToScan, { max: 1, waitCodes: [ 502, 504 ] } )
);
}

const result: Record< string, boolean > = {};
Expand Down

0 comments on commit 52d5027

Please sign in to comment.