mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-12-24 19:10:15 +00:00
don't include current crawl as self-reference dependency
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user