don't include current crawl as self-reference dependency

This commit is contained in:
Ilya Kreymer
2025-12-09 16:20:19 -08:00
parent aa44e5491c
commit f68175f74a

View File

@@ -1448,8 +1448,10 @@ return inx;
// DEPENDENT CRAWLS FOR DEDUPE (requires WACZ)
async addDupeCrawlDependency(crawlId: string, index: string) {
await this.redis.sadd(`${this.uid}:duperef`, crawlId + " " + index);
await this.redis.sadd(`${this.crawlId}:reqCrawls`, crawlId);
if (crawlId !== this.crawlId) {
await this.redis.sadd(`${this.uid}:duperef`, crawlId + " " + index);
await this.redis.sadd(`${this.crawlId}:reqCrawls`, crawlId);
}
}
// async clearDupeCrawlDependency() {