We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4fd09 commit 920ccb8Copy full SHA for 920ccb8
src/controller.ts
@@ -77,6 +77,7 @@ export async function controller<
77
// 选择爬取模式
78
const batchCrawl = mode === 'async' ? asyncBatchCrawl : syncBatchCrawl
79
80
+ let i = 0
81
let crawlQueue: ControllerConfig<T, V>[] = controllerConfigs
82
while (crawlQueue.length) {
83
await batchCrawl(
@@ -95,7 +96,9 @@ export async function controller<
95
96
97
if (crawlQueue.length) {
98
const retriedIds = crawlQueue.map((item) => item.id)
- log(logWarn(`Ids to retry: [ ${retriedIds.join(' - ')} ]`))
99
+ log(
100
+ logWarn(`Retry: ${++i} - Ids to retry: [ ${retriedIds.join(' - ')} ]`)
101
+ )
102
}
103
104
0 commit comments