From c8c23c53ef0bfac7fc6d45b13a75ea3b1fd43124 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 5 Apr 2022 10:36:09 +0200 Subject: [PATCH] fix: Update stucked builds --- src/lib/queues/builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/queues/builder.ts b/src/lib/queues/builder.ts index 0ef207f2a..f6d57862e 100644 --- a/src/lib/queues/builder.ts +++ b/src/lib/queues/builder.ts @@ -61,7 +61,7 @@ export default async function (job) { await asyncSleep(500); await db.prisma.build.updateMany({ where: { - status: 'queued', + status: { in: ['queued', 'running'] }, id: { not: buildId }, applicationId, createdAt: { lt: new Date(new Date().getTime() - 60 * 60 * 1000) }