feat: SSE progress streaming + structured logging (feature parity)#3
Open
sktbrd wants to merge 1 commit intobgrana75:mainfrom
Open
feat: SSE progress streaming + structured logging (feature parity)#3sktbrd wants to merge 1 commit intobgrana75:mainfrom
sktbrd wants to merge 1 commit intobgrana75:mainfrom
Conversation
…ints
Feature parity with Mac Mini video worker:
NEW ENDPOINTS:
- GET /progress/:requestId - Real-time SSE progress streaming
- GET /logs?limit=10 - Recent transcode logs (JSON)
- GET /stats - Transcode statistics (total, success rate, avg duration)
NEW FILES:
- src/logger.js - Structured logging with file persistence
FEATURES:
- SSE progress: clients can subscribe before upload starts via correlationId
- FFmpeg progress tracking: real-time transcode percentage (0-80%)
- Upload progress: Pinata upload percentage (85-100%)
- Structured logs: saved to logs/transcode-{hostname}.log
- Dashboard data: logs + stats endpoints for monitoring
- Enhanced error logging: full Pinata error details
All servers (Mac Mini, Oracle, Pi) now have identical feature sets.
Webapp SSE progress bar works on all servers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature Parity PR
This brings the Oracle worker to 100% feature parity with the Mac Mini worker.
New Endpoints
/progress/:requestId/logs?limit=10/statsNew File
src/logger.js— Structured logging with file persistence (logs/transcode-{hostname}.log)SSE Progress Flow
Why This Matters
/progressendpoint/logsand/statsBackward Compatible
/transcodeand/healthzendpoints unchanged