(jobId: number)
| 248 | } |
| 249 | |
| 250 | async function markJobProcessing(jobId: number): Promise<void> { |
| 251 | await db |
| 252 | .update(pipelineJobs) |
| 253 | .set({ status: "processing", startedAt: new Date() }) |
| 254 | .where(eq(pipelineJobs.id, jobId)); |
| 255 | } |
| 256 | |
| 257 | async function markJobCompleted(jobId: number): Promise<void> { |
| 258 | await db |