| 12345678910111213141516171819202122 |
- /**
- * Transcode Dispatcher
- * ─────────────────────────────────────────────────────
- * Since the transcode worker runs as a SEPARATE Docker service (worker/),
- * this module is a no-op stub. The API just creates an asset with
- * transcodeStatus = PENDING and the worker picks it up from the DB.
- *
- * This file exists so that other code (e.g. routes/assets.ts) can
- * import { startTranscodeJob } without changes.
- */
- export interface TranscodeJob {
- assetId: string;
- videoPath: string;
- outputDir: string;
- }
- /** No-op — the worker service polls the DB. */
- export function startTranscodeJob(job: TranscodeJob): void {
- // Worker handles it — nothing to do here.
- // But we validate the asset row so it starts in PENDING state.
- // (already done by the upload route before calling this)
- }
|