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

Function getJobProgress

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

Source from the content-addressed store, hash-verified

198 * clobber `rows_processed` (and every count derived from it) with the retry's smaller number.
199 */
200export async function getJobProgress(tableId: string, jobId: string): Promise<number | null> {
201 const [job] = await db
202 .select({ rowsProcessed: tableJobs.rowsProcessed })
203 .from(tableJobs)
204 .where(ownsActiveJob(tableId, jobId))
205 .limit(1)
206 return job ? job.rowsProcessed : null
207}
208
209/**
210 * One keyset page of rows for the export worker, ordered by `(order_key, id)` — the same

Callers 2

runTableUpdateFunction · 0.90
runTableDeleteFunction · 0.90

Calls 1

ownsActiveJobFunction · 0.85

Tested by

no test coverage detected