BUG: job_type and job_status enums don't match — jobs.js DB table uses job_type ENUM with missing values #75
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?
Fixed in migration
016-fix-job-type-enum.sql—job_typenow includesproxy,import;job_statusincludescompleted. Verified.Fix Plan — #75 job_type and job_status enums don't match
Root cause: job_type enum: proxy_gen, thumbnail, conform, export (+ youtube_import, trim via migrations). BullMQ queues: proxy, thumbnail, conform, import, trim. Naming inconsistency: import vs youtube_import. Also: upload.js and assets.js never write to jobs DB table — only add to BullMQ.
Fix: Align enum values with BullMQ queue names. Either:
Files: migration SQL, src/routes/upload.js, src/routes/assets.js, worker files
Effort: ~1.5h
**Priority: P2 — data consistency
POST /assets/batch-trimcreatesjobstable row with wrong job_type — no matching pg_enum value #70jobsrow is orphaned — no status lifecycle,job_typeenum is stale #90