MCPcopy Index your code
hub / github.com/simstudioai/sim / markJobReady

Function markJobReady

apps/sim/lib/table/jobs/service.ts:348–356  ·  view source on GitHub ↗
(tableId: string, jobId: string)

Source from the content-addressed store, hash-verified

346 * cancel / supersede).
347 */
348export async function markJobReady(tableId: string, jobId: string): Promise<boolean> {
349 const now = new Date()
350 const updated = await db
351 .update(tableJobs)
352 .set({ status: 'ready', error: null, completedAt: now, updatedAt: now })
353 .where(ownsActiveJob(tableId, jobId))
354 .returning({ id: tableJobs.id })
355 return updated.length > 0
356}
357
358/**
359 * Marks a job failed, leaving any already-committed work in place. No-op unless it's still this

Callers 5

runTableImportFunction · 0.90
runTableUpdateFunction · 0.90
runTableExportFunction · 0.90
runTableBackfillFunction · 0.90
runTableDeleteFunction · 0.90

Calls 2

ownsActiveJobFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected