Skip to content

Commit

Permalink
fix: Don't reset failed embedding jobs (#9877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch authored Jun 26, 2024
1 parent 2ff00e3 commit 882443c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/embedder/resetStalledJobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const resetStalledJobs = () => {
stateMessage: 'stalled'
}))
.where('startAt', '<', new Date(Date.now() - ms('5m')))
.where('state', '=', 'running')
.execute()
}, ms('5m')).unref()
}

0 comments on commit 882443c

Please sign in to comment.