mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 19:26:03 +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++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await redisConnection.expire(
|
||||||
|
"sitemap:" + this.jobId + ":links",
|
||||||
|
3600,
|
||||||
|
"NX",
|
||||||
|
);
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.message === "Sitemap fetch timeout") {
|
if (error.message === "Sitemap fetch timeout") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user