mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 21:29:00 +08:00
fix(crawler): always set expiry on sitemap links in redis
This commit is contained in:
parent
c3738063cf
commit
474e5a0543
@ -334,6 +334,12 @@ export class WebCrawler {
|
||||
count++;
|
||||
}
|
||||
|
||||
await redisConnection.expire(
|
||||
"sitemap:" + this.jobId + ":links",
|
||||
3600,
|
||||
"NX",
|
||||
);
|
||||
|
||||
return count;
|
||||
} catch (error) {
|
||||
if (error.message === "Sitemap fetch timeout") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user