From 882443c60c80ddc74e45b9ba7a375db43a0d4494 Mon Sep 17 00:00:00 2001 From: Georg Bremer Date: Wed, 26 Jun 2024 17:52:39 +0200 Subject: [PATCH] fix: Don't reset failed embedding jobs (#9877) --- packages/embedder/resetStalledJobs.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/embedder/resetStalledJobs.ts b/packages/embedder/resetStalledJobs.ts index 7269a3ce519..b5eb3b50948 100644 --- a/packages/embedder/resetStalledJobs.ts +++ b/packages/embedder/resetStalledJobs.ts @@ -13,6 +13,7 @@ export const resetStalledJobs = () => { stateMessage: 'stalled' })) .where('startAt', '<', new Date(Date.now() - ms('5m'))) + .where('state', '=', 'running') .execute() }, ms('5m')).unref() }