Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.
ReferenceAPI ReferenceLibraryJobsHandlersScraper Execution Job

web


web / lib/jobs/handlers/scraper-execution-job

lib/jobs/handlers/scraper-execution-job

Background job handler for executing scrapers via the TimeScrape runner API.

This job loads a scraper definition, calls the external runner service, records the result as a scraper-run, and optionally triggers the import pipeline when autoImport is enabled.

Variables

scraperExecutionJob

const scraperExecutionJob: object

Type Declaration

slug

slug: string = "scraper-execution"

handler

handler: (context) => Promise<{ output: \{ runId: number; status: "success" \| "failed" \| "timeout"; durationMs: number; outputRows: number \| undefined; ingestFileId?: string \| number; }; }>

Parameters
context

JobHandlerContext

Returns

Promise<{ output: \{ runId: number; status: "success" \| "failed" \| "timeout"; durationMs: number; outputRows: number \| undefined; ingestFileId?: string \| number; }; }>

Last updated on