MCPcopy Create free account
hub / github.com/Donnadieu/Epstein-File-Explorer / markJobCompleted

Function markJobCompleted

scripts/pipeline/batch-processor.ts:257–262  ·  view source on GitHub ↗
(jobId: number)

Source from the content-addressed store, hash-verified

255}
256
257async function markJobCompleted(jobId: number): Promise<void> {
258 await db
259 .update(pipelineJobs)
260 .set({ status: "completed", completedAt: new Date() })
261 .where(eq(pipelineJobs.id, jobId));
262}
263
264async function markJobFailed(jobId: number, error: string, attempts: number, maxAttempts: number): Promise<void> {
265 const newStatus = attempts + 1 >= maxAttempts ? "failed" : "pending";

Callers 1

processBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected