Skip to content

Commit

Permalink
chore: fix requeueing
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Mar 3, 2024
1 parent 039bcaf commit 2b3592c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
"ws": "^8.16.0"
},
"devDependencies": {
"puppeteer-cluster": "^0.23.0",
"@types/fs-extra": "^11.0.4",
"@types/lodash-es": "^4.17.12",
"@types/object-hash": "^3.0.6",
"@types/ws": "^8.5.10",
"lodash-es": "^4.17.21"
"lodash-es": "^4.17.21",
"puppeteer-cluster": "^0.23.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/src/puppeteer/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export async function createUnlighthouseWorker(tasks: Record<UnlighthouseTask, T
// only requeue each report once
if (currentRetries < 3) {
retriedRoutes.set(id, currentRetries + 1)
queueRoute(routeReport.route)
requeueReport(routeReport)
}
return
}
Expand Down

0 comments on commit 2b3592c

Please sign in to comment.