UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

12 lines (11 loc) 680 B
import { GeoprocessingTask } from "../aws/tasks.js"; import { GeoprocessingRequest } from "../types/index.js"; /** * Runs task by sending GET request to url with payload and optional flags * Task can be aborted using caller-provided AbortSignal */ export declare const runTask: (url: string, payload: GeoprocessingRequest, signal: AbortSignal, checkCacheOnly: boolean, onConnect: boolean) => Promise<GeoprocessingTask>; /** * Finishes task by hitting the remote cache, updating the hook with the task result and cleaning up */ export declare const finishTask: (url: any, payload: any, abortController: any, setState: any, currServiceName: any, socket: any) => Promise<void>;