scrapfly.cancelCrawl stops a crawler job.
crawlerId is required. Returns { cancelled: true } when Scrapfly accepts the request. Scrapfly treats cancellation idempotently: a completed or already-cancelled job remains a successful no-op.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cancel a pending or running Scrapfly crawler job.
scrapfly.cancelCrawl stops a crawler job.
import { automation, onInvocation } from "automate.ax"
import { scrapfly } from "automate.ax/scrapfly"
export default automation("Cancel crawl", () => {
const request = onInvocation()
scrapfly.cancelCrawl({ crawlerId: request.input.crawlerId })
})
crawlerId is required. Returns { cancelled: true } when Scrapfly accepts the request. Scrapfly treats cancellation idempotently: a completed or already-cancelled job remains a successful no-op.