feat: batch large source imports
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { db } from "@/lib/db";
|
||||
|
||||
export type SyncTrigger = "manual" | "webhook" | "scheduled" | "source-created";
|
||||
export type SyncTrigger = "manual" | "webhook" | "scheduled" | "source-created" | "batch";
|
||||
|
||||
/** Queue one pull per source at a time. Returns true only when a new job was created. */
|
||||
export function queuePull(sourceId: number, trigger: SyncTrigger, payload: unknown = {}) {
|
||||
|
||||
Reference in New Issue
Block a user