MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / startPeriodicCatalogCrawl

Method startPeriodicCatalogCrawl

server/src/crawler.ts:915–922  ·  view source on GitHub ↗
(intervalMinutes: number = 30)

Source from the content-addressed store, hash-verified

913 private catalogCrawling = false;
914
915 startPeriodicCatalogCrawl(intervalMinutes: number = 30) {
916 // Don't run immediately — let the main crawl finish first
917 this.catalogCrawlIntervalId = setInterval(() => {
918 this.crawlCatalogDomains();
919 }, intervalMinutes * 60 * 1000);
920
921 log.info({ intervalMinutes }, 'Periodic catalog domain crawl started');
922 }
923
924 async crawlCatalogDomains(): Promise<{ checked: number; found: number }> {
925 if (this.catalogCrawling || this.crawling) {

Callers 1

startMethod · 0.80

Calls 1

crawlCatalogDomainsMethod · 0.95

Tested by

no test coverage detected