diff --git a/server/workers/docs-builder-worker.js b/server/workers/docs-builder-worker.js index 9d64c66..ba81aa7 100644 --- a/server/workers/docs-builder-worker.js +++ b/server/workers/docs-builder-worker.js @@ -19,6 +19,8 @@ setInterval(() => { Date.now() - workerActiveTime, "s", ); + + throw new Error("Worker exited because it was jobless for too long."); } }, 5000);