Skip to content

Commit

Permalink
fix(crawl-redis/finishCrawl): increase logging to hunt down race cond…
Browse files Browse the repository at this point in the history
…ition
  • Loading branch information
mogery committed Jan 17, 2025
1 parent 078c067 commit 13abb2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/api/src/lib/crawl-redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ export async function finishCrawl(id: string) {
module: "crawl-redis",
method: "finishCrawl",
crawlId: id,
jobs_done: (await redisConnection.scard("crawl:" + id + ":jobs_done")),
jobs: (await redisConnection.scard("crawl:" + id + ":jobs")),
kickoff_finished: (await redisConnection.get("crawl:" + id + ":kickoff:finish")) !== null,
});
}
}
Expand Down

0 comments on commit 13abb2b

Please sign in to comment.