(tableId: string, jobId: string)
| 198 | * clobber `rows_processed` (and every count derived from it) with the retry's smaller number. |
| 199 | */ |
| 200 | export 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 |
no test coverage detected