Dedupe active transcription jobs by media cache key #182

Merged
backmeupplz merged 1 commit from symphony/voi-kaneo-62-inflight-dedupe into main 2026-05-07 02:09:48 +00:00
backmeupplz commented 2026-05-07 02:04:48 +00:00 (Migrated from github.com)

Summary

  • add an active media cache-key lock to transcription jobs with a unique partial Mongo index
  • dedupe enqueue attempts before creating a worker job and handle concurrent duplicate-key races
  • release the active lock when jobs complete or permanently fail, while preserving completed result-cache replay

Validation

  • yarn build-ts
  • yarn test:transcription-cache
  • yarn lint
  • yarn test:worker-api (blocked: MONGO is required for the worker API proof)

Manual QA: not required for this change; deterministic proof covers cache hit replay, concurrent duplicate creation, active job dedupe, and final failure lock release without Telegram UI changes.

## Summary - add an active media cache-key lock to transcription jobs with a unique partial Mongo index - dedupe enqueue attempts before creating a worker job and handle concurrent duplicate-key races - release the active lock when jobs complete or permanently fail, while preserving completed result-cache replay ## Validation - yarn build-ts - yarn test:transcription-cache - yarn lint - yarn test:worker-api (blocked: MONGO is required for the worker API proof) Manual QA: not required for this change; deterministic proof covers cache hit replay, concurrent duplicate creation, active job dedupe, and final failure lock release without Telegram UI changes.
backmeupplz commented 2026-05-07 02:09:40 +00:00 (Migrated from github.com)

OpenClaw validation, 2026-05-06 19:12 America/Vancouver:

  • Reviewed PR head 2b9d76903b8e34ccf6312d7701b42350ce3d8226; PR is non-draft, clean merge state, GitHub compile-code is green.
  • Local gates passed: yarn build-ts, yarn test:transcription-cache, yarn lint.
  • yarn test:worker-api initially failed because MONGO was unset in my shell; reran it against the existing local QA Mongo container with an isolated temp DB and it passed.
  • Static review: active dedupe uses a stable media cache key, unique partial activeMediaCacheKey index, duplicate-key race handling, free allowance refund on dedupe, and lock release on completed/final failed jobs.

No Telegram UI/manual QA required for this backend-only concurrency/cache change.

OpenClaw validation, 2026-05-06 19:12 America/Vancouver: - Reviewed PR head `2b9d76903b8e34ccf6312d7701b42350ce3d8226`; PR is non-draft, clean merge state, GitHub `compile-code` is green. - Local gates passed: `yarn build-ts`, `yarn test:transcription-cache`, `yarn lint`. - `yarn test:worker-api` initially failed because `MONGO` was unset in my shell; reran it against the existing local QA Mongo container with an isolated temp DB and it passed. - Static review: active dedupe uses a stable media cache key, unique partial `activeMediaCacheKey` index, duplicate-key race handling, free allowance refund on dedupe, and lock release on completed/final failed jobs. No Telegram UI/manual QA required for this backend-only concurrency/cache change.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
backmeupplz/voicy!182
No description provided.