You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: detect and flag stale audio_gen documents in check-renders
Documents stuck in audio_gen for >10 minutes (from pipeline timeouts)
are now automatically flagged with a helpful message to reset to
script_ready to retry.
console.log(`[CHECK-RENDERS] Flagging stuck document "${doc.title||doc._id}" (audio_gen since ${doc._updatedAt})`);
79
+
try{
80
+
awaitclient.patch(doc._id).set({
81
+
status: 'flagged',
82
+
flaggedReason: `Pipeline timed out during audio generation. Document stuck in audio_gen since ${doc._updatedAt}. Reset status to script_ready to retry.`,
83
+
}).commit();
84
+
}catch(err){
85
+
console.error(`[CHECK-RENDERS] Failed to flag stuck doc ${doc._id}:`,err);
0 commit comments