BUG: proxy.js worker sets status='error' on failure at end — overrides existing live/ingesting status #79
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
services/worker/src/workers/proxy.jsin thecatchblock:And at the end of the
finallyblock.Problem
If the proxy job was queued for a
liveasset (which happens —POST /assetsqueues proxy for live assets that haveoriginal_s3_key), and the proxy job fails, it sets status toerror. But aliveasset isn't "errored" — it's still being recorded. The live status should be preserved.Impact
POST /:id/generate-proxy), a proxy failure would erroneously mark the live recording aserrorLocation
services/worker/src/workers/proxy.js:174-176Fix
Only set
status = 'error'when current status isn't'live'or'ingesting':