Agent: server-side throughput rates + killable-on-stop ffmpeg #183
Reference in New Issue
Block a user
Delete Branch "dev"
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?
Follow-up to PR #182, from live debugging of "work/min never populates" and "stopped never reached". CI-green on
713a11e(run 1843).713a11e— server-side rate metrics + killable ffmpeg.jobs/min+downloads/minare now computed in the backend (worker._rate_loop, EWMA on a fixed cadence) and reported ready-to-show. They were derived client-side from poll deltas with adt<30sguard — but a backgrounded/unfocused browser tab throttles timers to ~1/min, so every delta blew past the guard and the rates blanked forever. Server-side rates are independent of poll rate. (Also explains the state-pill lag: a throttled tab repaints ~1/min.)sample_frames_from_urlnow runs ffmpeg viaPopenand polls ashould_stopcallback every 0.5s, terminating/killing the process at once on Stop or the per-video timeout; a stop-killed job is handed back (transient), not failed.No client-side data storage or computation of authoritative values remains (audited): all counters/state live in the backend
Worker; the browser only pulls + displays.Deploy note
Agent runs
:latest(main) → needsmain+ a re-pull on the desktop agent. No migrations; web/backend unaffected.🤖 Generated with Claude Code