( tableId: string, jobId: string, error: unknown )
| 166 | * web-container fallback (no retries). Scoped to jobId — a no-op if a newer job has taken over. |
| 167 | */ |
| 168 | export async function markTableDeleteFailed( |
| 169 | tableId: string, |
| 170 | jobId: string, |
| 171 | error: unknown |
| 172 | ): Promise<void> { |
| 173 | const message = truncate(getErrorMessage(toError(error).cause ?? error, 'Delete failed'), 500) |
| 174 | await markJobFailed(tableId, jobId, message).catch(() => {}) |
| 175 | void appendTableEvent({ |
| 176 | kind: 'job', |
| 177 | type: 'delete', |
| 178 | tableId, |
| 179 | jobId, |
| 180 | status: 'failed', |
| 181 | error: message, |
| 182 | }) |
| 183 | } |
no test coverage detected