🪻 distributed transcription service thistle.dunkirk.sh

feat: handle murmur going down

dunkirk.sh dc90294a ed81b190

verified
Changed files
+12 -2
src
+10 -1
src/index.ts
···
}
// Periodic sync every 5 minutes as backup (SSE handles real-time updates)
-
setInterval(() => whisperService.syncWithWhisper(), 5 * 60 * 1000);
+
setInterval(async () => {
+
try {
+
await whisperService.syncWithWhisper();
+
} catch (error) {
+
console.warn(
+
"[Sync] Failed to sync with Murmur:",
+
error instanceof Error ? error.message : "Unknown error",
+
);
+
}
+
}, 5 * 60 * 1000);
// Clean up stale files daily
setInterval(() => whisperService.cleanupStaleFiles(), 24 * 60 * 60 * 1000);
+2 -1
src/lib/transcription.ts
···
async syncWithWhisper(): Promise<void> {
const whisperJobs = await this.fetchWhisperJobs();
if (!whisperJobs) {
-
throw new Error("Murmur service unavailable");
+
console.warn("[Sync] Murmur service unavailable");
+
return;
}
const activeDbJobs = this.getActiveDbJobs();