fix(#79): proxy worker respects live/ingesting status on error
This commit is contained in:
parent
fba671ad40
commit
2e1ac72585
1 changed files with 2 additions and 1 deletions
|
|
@ -221,7 +221,8 @@ export const proxyWorker = async (job) => {
|
|||
} catch (error) {
|
||||
console.error(`[proxy] Error processing asset ${assetId}:`, error);
|
||||
await query(
|
||||
`UPDATE assets SET status = 'error', updated_at = NOW() WHERE id = $1`,
|
||||
`UPDATE assets SET status = 'error', updated_at = NOW()
|
||||
WHERE id = $1 AND status NOT IN ('live', 'ingesting')`,
|
||||
[assetId]
|
||||
);
|
||||
throw error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue