Skip to content

StartCrawler

Source: src/AWS/Glue/StartCrawler.ts

Runtime binding for glue:StartCrawler.

Starts a crawl of the bound Crawler on demand — the standard way to refresh the Data Catalog right after new data lands. Fails with the typed CrawlerRunningException if a crawl is already in progress. The crawler name is injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.StartCrawlerHttp).

// init
const startCrawler = yield* AWS.Glue.StartCrawler(crawler);
// runtime — tolerate an already-running crawl
yield* startCrawler().pipe(
Effect.catchTag("CrawlerRunningException", () => Effect.void),
);