Skip to content

StopCrawler

Source: src/AWS/Glue/StopCrawler.ts

Runtime binding for glue:StopCrawler.

Stops an in-progress crawl of the bound Crawler. Fails with the typed CrawlerNotRunningException when idle and CrawlerStoppingException when a stop is already underway. The crawler name is injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.StopCrawlerHttp).

// init
const stopCrawler = yield* AWS.Glue.StopCrawler(crawler);
// runtime — tolerate an idle or already-stopping crawler
yield* stopCrawler().pipe(
Effect.catchTag(
["CrawlerNotRunningException", "CrawlerStoppingException"],
() => Effect.void,
),
);