fix: users can retriger transcription
This commit is contained in:
@@ -16,3 +16,14 @@ export const ZDeadLetterCleanupPayload = z.object({
|
||||
olderThanDays: z.number().int().positive().default(180)
|
||||
});
|
||||
export type TDeadLetterCleanupPayload = z.infer<typeof ZDeadLetterCleanupPayload>;
|
||||
|
||||
/**
|
||||
* Sweep `media_job` rows that are still `queued` / `running` but haven't been
|
||||
* touched in `staleAfterMinutes`. Marks them `failed` so the active-job guard
|
||||
* stops blocking new runs after a worker crash, server restart, or lost
|
||||
* BullMQ job.
|
||||
*/
|
||||
export const ZMediaJobReapPayload = z.object({
|
||||
staleAfterMinutes: z.number().int().positive().default(30)
|
||||
});
|
||||
export type TMediaJobReapPayload = z.infer<typeof ZMediaJobReapPayload>;
|
||||
|
||||
@@ -37,6 +37,7 @@ export const JOB_NAMES = {
|
||||
},
|
||||
maintenance: {
|
||||
retentionCompact: 'retention-compact',
|
||||
deadLetterCleanup: 'dead-letter-cleanup'
|
||||
deadLetterCleanup: 'dead-letter-cleanup',
|
||||
mediaJobReap: 'media-job-reap'
|
||||
}
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user