Skip to documentation
Docs navigation
Docs/runOnce()
Maintenance

runOnce()

Run one maintenance cycle.

What it does

Run one maintenance cycle.

This is useful for controlled maintenance windows, tests, and jobs where the host scheduler determines cadence.

Signature

TypeScript
runOnce(): Promise<CrawlerReport>

Example

example.ts
const report = await crawler.runOnce();